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
36546db7
Commit
36546db7
authored
Sep 05, 2001
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #455231: Support ELF properly on OpenBSD.
parent
44f86961
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
249 additions
and
267 deletions
+249
-267
Python/dynload_shlib.c
Python/dynload_shlib.c
+1
-1
configure
configure
+245
-254
configure.in
configure.in
+3
-12
No files found.
Python/dynload_shlib.c
View file @
36546db7
...
...
@@ -16,7 +16,7 @@
#endif
#endif
#if
def __OpenBSD__
#if
defined(__OpenBSD__) && !defined(__ELF__)
#define LEAD_UNDERSCORE "_"
#else
#define LEAD_UNDERSCORE ""
...
...
configure
View file @
36546db7
This diff is collapsed.
Click to expand it.
configure.in
View file @
36546db7
...
...
@@ -673,15 +673,7 @@ then
Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";;
OpenBSD*) LDSHARED="ld -Bshareable";;
NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LDSHARED="cc -shared"
else
LDSHARED="ld -Bshareable"
fi;;
FreeBSD*)
OpenBSD*|NetBSD*|FreeBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LDSHARED="cc -shared ${LDFLAGS}"
...
...
@@ -716,8 +708,7 @@ then
fi;;
Linux*) CCSHARED="-fPIC";;
BSD/OS*/4*) CCSHARED="-fpic";;
OpenBSD*) CCSHARED="-fpic";;
FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
UnixWare*)
if test "$GCC" = "yes"
then CCSHARED="-fPIC"
...
...
@@ -762,7 +753,7 @@ then
UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
FreeBSD*|NetBSD*)
FreeBSD*|NetBSD*
|OpenBSD*
)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LINKFORSHARED="-Wl,--export-dynamic"
...
...
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