Linker flags for ELF based systems
This commit is contained in:
parent
1a5f61cec4
commit
fb1815c01d
2 changed files with 5 additions and 6 deletions
|
@ -11,7 +11,6 @@ ifeq ($(TARGET),)
|
|||
endif
|
||||
endif
|
||||
|
||||
|
||||
############################################
|
||||
# Google NaCl target
|
||||
ifeq ($(TARGET),nacl)
|
||||
|
@ -33,7 +32,7 @@ ifeq ($(TARGET),nacl)
|
|||
LDLIBS += -lppapi_cpp -lppapi
|
||||
GLOBAL_INCLUDES := -I../zlib/zlib_library -I$(NACL_TOOLCHAIN)/i686-nacl/usr/include
|
||||
ZLIB_BUILD := defined
|
||||
CFLAGS += -D__int64="long long" -std=gnu++0x
|
||||
CFLAGS += -D__int64="long long"
|
||||
CXXFLAGS += -D__int64="long long" -std=gnu++0x
|
||||
DYNAMICLIB_FLAGS := -shared
|
||||
############################################
|
||||
|
@ -102,7 +101,7 @@ $(error Set JAVA_HOME environment variable)
|
|||
DYNAMICLIB_EXT := dll
|
||||
LIBRARY_PREFIX := # empty
|
||||
LDFLAGS += -Wl,--kill-at -static-libstdc++ -static-libgcc
|
||||
CFLAGS += -std=gnu++0x
|
||||
CFLAGS += # empty
|
||||
CXXFLAGS += -std=gnu++0x
|
||||
DYNAMICLIB_FLAGS := -shared
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
|
@ -116,8 +115,8 @@ $(error Set JAVA_HOME environment variable)
|
|||
STATICLIB_EXT := a
|
||||
DYNAMICLIB_EXT := so
|
||||
LIBRARY_PREFIX := lib
|
||||
DYNAMICLIB_FLAGS := -shared
|
||||
CFLAGS += -std=gnu++0x
|
||||
DYNAMICLIB_FLAGS := -shared -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new
|
||||
CFLAGS += # empty
|
||||
CXXFLAGS += -std=gnu++0x
|
||||
endif
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ LIBTYPE = $(DYNAMICLIB_EXT)
|
|||
ifeq ($(TARGET),darwin)
|
||||
LDLIBS += --whole-archive -lskia --no-whole-archive -lproto -lft2 -lexpat -lpng -lz
|
||||
else
|
||||
LDLIBS += -Wl,-Bsymbolic -Wl,--whole-archive -lskia -lpng -Wl,--no-whole-archive -lproto -lft2 -lexpat -lpng -lz
|
||||
LDLIBS += -Wl,--whole-archive -lskia -Wl,--no-whole-archive -lproto -lft2 -lexpat -lpng -lz
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET),windows)
|
||||
|
|
Loading…
Reference in a new issue