summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 05:41:32 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 05:41:32 (GMT)
commit4e9da47d8fa9bf11267071596f24a1aeda3910a1 (patch)
tree6b2c485ecdca8a5f1d9fa7543535b2a61153e771 /Makefile.pre.in
parent37c02c9697c5de1080421a72813ab2ea88621ed9 (diff)
parent48e14d3fdac9902429dc5312252073389a538a17 (diff)
downloadcpython-4e9da47d8fa9bf11267071596f24a1aeda3910a1.zip
cpython-4e9da47d8fa9bf11267071596f24a1aeda3910a1.tar.gz
cpython-4e9da47d8fa9bf11267071596f24a1aeda3910a1.tar.bz2
merge 11347.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index 7912368..e8624ed 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -75,6 +75,7 @@ PY_CFLAGS= $(BASECFLAGS) $(OPT) $(CONFIGURE_CFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
# environment variables
PY_CPPFLAGS= -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
PY_LDFLAGS= $(CONFIGURE_LDFLAGS) $(LDFLAGS)
+NO_AS_NEEDED= @NO_AS_NEEDED@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
CCSHARED= @CCSHARED@
@@ -459,7 +460,7 @@ libpython$(LDVERSION).so: $(LIBRARY_OBJS)
fi
libpython3.so: libpython$(LDVERSION).so
- $(BLDSHARED) -o $@ -Wl,-hl$@ $^
+ $(BLDSHARED) $(NO_AS_NEEDED) -o $@ -Wl,-h$@ $^
libpython$(LDVERSION).dylib: $(LIBRARY_OBJS)
$(CC) -dynamiclib -Wl,-single_module $(PY_LDFLAGS) -undefined dynamic_lookup -Wl,-install_name,$(prefix)/lib/libpython$(LDVERSION).dylib -Wl,-compatibility_version,$(VERSION) -Wl,-current_version,$(VERSION) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST); \