Check for support of -z nodelete LD flag, don't use it unconditionally.

On non-GNU, non-Sun linkers, the -z option is often not understood; make
sure that the -z nodelete option is usable before making use of it.

Unbreaks build on Mac OS X.
This commit is contained in:
Diego Elio 'Flameeyes' Pettenò 2009-07-17 14:18:07 +02:00
parent 7e4509f9e5
commit 673112b192
2 changed files with 10 additions and 1 deletions

View file

@ -87,7 +87,7 @@ AM_CFLAGS = \
AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDFLAGS = -Wl,-z,nodelete
AM_LDFLAGS = $(NODELETE_LDFLAGS)
if STATIC_BINS
BINLDFLAGS = -static