Moved SHRLIB_LDFLAGS and LOADABLE_SHRLIB_LDFLAGS to os files.

This commit is contained in:
Janet B. Anderson
2005-09-15 16:54:07 +00:00
parent 32b1a0c01d
commit d1d431f28c
6 changed files with 20 additions and 3 deletions

View File

@ -49,8 +49,6 @@ STATIC_LDFLAGS_YES = -static
STATIC_LDFLAGS_NO =
SHRLIB_CFLAGS = -fPIC
SHRLIB_LDFLAGS = -shared -fPIC -h $@ -z defs
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC -h $@
GNU_LDLIBS_YES = -lgcc

View File

@ -14,3 +14,6 @@ AR = ar
ARFLAGS = rcv
RANLIB = ranlib -t
SHRLIB_LDFLAGS = -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC

View File

@ -24,3 +24,6 @@ STATIC_LDLIBS_NO =
POSIX_CPPFLAGS_YES += -D_REENTRANT -D_PTHREADS -D_POSIX_C_SOURCE=199506L
USR_SYS_LIBS += pthread
# C++ templates need PIC definition also in link phase
SHRLIB_LDFLAGS += -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS += $(SHRLIB_LDFLAGS)

View File

@ -11,5 +11,11 @@ include $(CONFIG)/CONFIG.gnuCommon
GNU_DIR = /usr
#STATIC_CFLAGS_YES= -static
STATIC_LDFLAGS_YES= -Wl,-Bstatic
STATIC_LDFLAGS_NO=
STATIC_LDLIBS_YES= -Wl,-Bdynamic
STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS += -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC

View File

@ -19,5 +19,8 @@ STATIC_LDFLAGS_NO=
STATIC_LDLIBS_YES= -Wl,-Bdynamic
STATIC_LDLIBS_NO=
SHRLIB_LDFLAGS += -shared -fPIC
LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC
OP_SYS_LDFLAGS += -z ignore -z combreloc -z lazyload

View File

@ -14,3 +14,7 @@ AR = ar -rc
RANLIB=
LD = ld -r
SHRLIB_LDFLAGS += -shared -fPIC -h $@ -z defs
LOADABLE_SHRLIB_LDFLAGS += -shared -fPIC -h $@
OP_SYS_LDFLAGS += -z ignore -z combreloc -z lazyload