Support for Archive Libs on Linux and shared data in executable

This commit is contained in:
spider 1998-06-04 07:20:48 +00:00
parent 2f1fa4ff18
commit 0c714f489c
4 changed files with 11 additions and 1 deletions

View File

@ -93,3 +93,6 @@ DSO_LDOPTS = -elf -shared -all
ifdef DSO_BACKEND
DSO_LDOPTS += -soname $(DSO_NAME)
endif
AR_ALL = -all
AR_NONE = -none

View File

@ -67,3 +67,7 @@ DSO_LDOPTS = -shared
DSO_LDFLAGS =
G++INCLUDES = -I/usr/include/g++
AR_ALL = --whole-archive
AR_NONE = --no-whole-archive
LINK_PROGRAM += -rdynamic

View File

@ -48,6 +48,9 @@ NATIVE_PLATFORM = unix
NATIVE_RAPTOR_WIDGET = widgetunix
NATIVE_RAPTOR_GFX = gfxunix
AR_ALL =
AR_NONE =
####################################################################
#
# One can define the makefile variable NSDISTMODE to control

View File

@ -290,7 +290,7 @@ else
endif
endif
else
$(MKSHLIB) -o $@ $(OBJS) -all $(AR_LIBS) -none $(LD_LIBS) $(EXTRA_LIBS) $(OS_LIBS)
$(MKSHLIB) -o $@ $(OBJS) $(AR_ALL) $(AR_LIBS) $(AR_NONE) $(LD_LIBS) $(EXTRA_LIBS) $(OS_LIBS)
chmod +x $@
endif
endif