mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Support for Archive Libs on Linux and shared data in executable
This commit is contained in:
parent
2f1fa4ff18
commit
0c714f489c
@ -93,3 +93,6 @@ DSO_LDOPTS = -elf -shared -all
|
||||
ifdef DSO_BACKEND
|
||||
DSO_LDOPTS += -soname $(DSO_NAME)
|
||||
endif
|
||||
|
||||
AR_ALL = -all
|
||||
AR_NONE = -none
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user