Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
79f90498
Commit
79f90498
authored
Jan 02, 2009
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
parent
57eb0e90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
8 deletions
+26
-8
Makefile.pre.in
Makefile.pre.in
+10
-6
configure
configure
+9
-2
configure.in
configure.in
+7
-0
No files found.
Makefile.pre.in
View file @
79f90498
...
...
@@ -414,10 +414,14 @@ libpython$(VERSION).so: $(LIBRARY_OBJS)
if
test
$(INSTSONAME)
!=
$(LDLIBRARY)
;
then
\
$(LDSHARED)
$(LDFLAGS)
-Wl
,-h
$(INSTSONAME)
-o
$(INSTSONAME)
$(LIBRARY_OBJS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
$(LN)
-f
$(INSTSONAME)
$@
;
\
else
\
else
\
$(LDSHARED)
$(LDFLAGS)
-o
$@
$(LIBRARY_OBJS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
fi
libpython$(VERSION).dylib
:
$(LIBRARY_OBJS)
$(CC)
-dynamiclib
-Wl
,-single_module
$(LDFLAGS)
-undefined
dynamic_lookup
-Wl
,-install_name,
$(prefix)
/lib/libpython
$(VERSION)
.dylib
-Wl
,-compatibility_version,
$(VERSION)
-Wl
,-current_version,
$(VERSION)
-o
$@
$(LIBRARY_OBJS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
;
\
libpython$(VERSION).sl
:
$(LIBRARY_OBJS)
$(LDSHARED)
$(LDFLAGS)
-o
$@
$(LIBRARY_OBJS)
$(SHLIBS)
$(LIBC)
$(LIBM)
$(LDLAST)
...
...
@@ -768,13 +772,13 @@ altbininstall: $(BUILDPYTHON)
fi
;
\
done
$(INSTALL_PROGRAM)
$(BUILDPYTHON)
$(DESTDIR)$(BINDIR)
/python
$(VERSION)$(EXE)
if
test
-f
libpython
$(VERSION)$(SO
)
;
then
\
if
test
-f
$(LDLIBRARY
)
;
then
\
if
test
"
$(SO)
"
=
.dll
;
then
\
$(INSTALL_SHARED)
libpython
$(VERSION)$(SO
)
$(DESTDIR)$(BINDIR)
;
\
$(INSTALL_SHARED)
$(LDLIBRARY
)
$(DESTDIR)$(BINDIR)
;
\
else
\
$(INSTALL_SHARED)
libpython
$(VERSION)$(SO
)
$(DESTDIR)$(LIBDIR)
/
$(INSTSONAME)
;
\
if
test
libpython
$(VERSION)$(SO
)
!=
$(INSTSONAME)
;
then
\
(
cd
$(DESTDIR)$(LIBDIR)
;
$(LN)
-sf
$(INSTSONAME)
libpython
$(VERSION)$(SO)
)
;
\
$(INSTALL_SHARED)
$(LDLIBRARY
)
$(DESTDIR)$(LIBDIR)
/
$(INSTSONAME)
;
\
if
test
$(LDLIBRARY
)
!=
$(INSTSONAME)
;
then
\
(
cd
$(DESTDIR)$(LIBDIR)
;
$(LN)
-sf
$(INSTSONAME)
$(LDLIBRARY)
)
\
fi
\
fi
;
\
else
true
;
\
...
...
configure
View file @
79f90498
#! /bin/sh
# From configure.in Revision: 67
227
.
# From configure.in Revision: 67
463
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7.
#
...
...
@@ -4139,6 +4139,12 @@ _ACEOF
BLDLIBRARY
=
'-L. -lpython$(VERSION)'
RUNSHARED
=
DLL_PATH
=
`
pwd
`
:
${
DLL_PATH
:-
/atheos/sys/libs
:/atheos/autolnk/lib
}
;;
Darwin
*
)
LDLIBRARY
=
'libpython$(VERSION).dylib'
BLDLIBRARY
=
'-L. -lpython$(VERSION)'
RUNSHARED
=
'DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
;;
esac
else
# shared is disabled
case
$ac_sys_system
in
...
...
@@ -13003,6 +13009,7 @@ fi
{
echo
"
$as_me
:
$LINENO
: result:
$SO
"
>
&5
echo
"
${
ECHO_T
}
$SO
"
>
&6
;
}
cat
>>
confdefs.h
<<
_ACEOF
#define SHLIB_EXT "
$SO
"
_ACEOF
...
...
@@ -13403,7 +13410,7 @@ _ACEOF
fi
# Dynamic linking for HP-UX
# only check for sem_ini if thread support is requested
# only check for sem_ini
t
if thread support is requested
if
test
"
$with_threads
"
=
"yes"
-o
-z
"
$with_threads
"
;
then
{
echo
"
$as_me
:
$LINENO
: checking for library containing sem_init"
>
&5
echo
$ECHO_N
"checking for library containing sem_init...
$ECHO_C
"
>
&6
;
}
...
...
configure.in
View file @
79f90498
...
...
@@ -737,6 +737,12 @@ if test $enable_shared = "yes"; then
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
;;
Darwin*)
LDLIBRARY='libpython$(VERSION).dylib'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED='DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH}'
;;
esac
else # shared is disabled
case $ac_sys_system in
...
...
@@ -1597,6 +1603,7 @@ else
sleep 10
fi
AC_MSG_RESULT($SO)
AC_DEFINE_UNQUOTED(SHLIB_EXT, "$SO", [Define this to be extension of shared libraries (including the dot!).])
# LDSHARED is the ld *command* used to create shared library
# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment