configure: misc compiler flags fixes.

- Don't use -Wp, some compilers don't understand it. Simply use -D__BLAH___.
- Check for -Wl,--export-dynamic and if that fails try -rdynamic.
This commit is contained in:
Juan RP
2011-02-24 15:33:53 +01:00
parent a252df4a8b
commit 17be7bab81
2 changed files with 9 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ LIBXBPS_MAJOR = 0
LIBXBPS_MINOR = 0
LIBXBPS_MICRO = 0
LIBXBPS_SHLIB = libxbps.so.$(LIBXBPS_MAJOR).$(LIBXBPS_MINOR).$(LIBXBPS_MICRO)
LDFLAGS += -Wl,--export-dynamic -shared -Wl,-soname,libxbps.so.$(LIBXBPS_MAJOR)
LDFLAGS += $(LIBXBPS_LDFLAGS) -shared -Wl,-soname,libxbps.so.$(LIBXBPS_MAJOR)
# portableproplib
LIBPROP_OBJS = portableproplib/prop_array.o portableproplib/prop_bool.o