Fix -Wl,-z,origin -Wl,-rpath,... quoting
Change-Id: I65eac6ab34d2d54eeaa2bc14838711f700d0d535
This commit is contained in:
parent
beab021ffe
commit
b888512fcb
@ -32,7 +32,7 @@
|
||||
|
||||
DSO_CFLAGS = -fPIC
|
||||
DSO_LDOPTS = -shared -Wl,-soname -Wl,$(notdir $@)
|
||||
+DSO_LDOPTS += '-Wl,-z,origin -Wl,-rpath,$$ORIGIN'
|
||||
+DSO_LDOPTS += -Wl,-z,origin '-Wl,-rpath,$$ORIGIN'
|
||||
|
||||
#
|
||||
# The default implementation strategy for FreeBSD is pthreads.
|
||||
@ -57,7 +57,7 @@
|
||||
# we don't use -z defs there.
|
||||
ZDEFS_FLAG = -Wl,-z,defs
|
||||
-DSO_LDOPTS += $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG))
|
||||
+DSO_LDOPTS += $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG)) '-Wl,-z,origin -Wl,-rpath,$$ORIGIN'
|
||||
+DSO_LDOPTS += $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG)) -Wl,-z,origin '-Wl,-rpath,$$ORIGIN'
|
||||
LDFLAGS += $(ARCHFLAG)
|
||||
|
||||
# INCLUDES += -I/usr/include -Y/usr/include/linux
|
||||
|
@ -345,7 +345,7 @@ CC_DEFINES=-DUNX -DGCC -DLINUX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_G
|
||||
|
||||
CC_OUTPUT_SWITCH=-o
|
||||
|
||||
LIBRARY_LINK_FLAGS=-shared '-Wl,-z,origin -Wl,-rpath,$$ORIGIN'
|
||||
LIBRARY_LINK_FLAGS=-shared -Wl,-z,origin '-Wl,-rpath,$$ORIGIN'
|
||||
|
||||
ifeq "$(PROCTYPE)" "ppc"
|
||||
LIBRARY_LINK_FLAGS+=-fPIC
|
||||
@ -580,7 +580,7 @@ CC_DEFINES=-DUNX -DGCC -DFREEBSD -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK
|
||||
|
||||
CC_OUTPUT_SWITCH=-o
|
||||
|
||||
LIBRARY_LINK_FLAGS=-shared '-Wl,-z,origin -Wl,-rpath,$$ORIGIN'
|
||||
LIBRARY_LINK_FLAGS=-shared -Wl,-z,origin '-Wl,-rpath,$$ORIGIN'
|
||||
COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS)
|
||||
|
||||
EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined
|
||||
|
@ -297,7 +297,7 @@ gb_Library_LAYER := \
|
||||
$(foreach lib,$(gb_Library_EXTENSIONLIBS),$(lib):OXT) \
|
||||
|
||||
define gb_Library__get_rpath
|
||||
$(if $(1),$(strip '-Wl,-z,origin -Wl,-rpath,$(1)' '-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)'))
|
||||
$(if $(1),$(strip -Wl,-z,origin '-Wl,-rpath,$(1)' '-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)'))
|
||||
endef
|
||||
|
||||
define gb_Library_get_rpath
|
||||
@ -338,7 +338,7 @@ gb_Executable_LAYER := \
|
||||
|
||||
|
||||
define gb_Executable_get_rpath
|
||||
'-Wl,-z,origin -Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Executable_get_layer,$(1)))' \
|
||||
-Wl,-z,origin '-Wl,-rpath,$(call gb_LinkTarget__get_rpath_for_layer,$(call gb_Executable_get_layer,$(1)))' \
|
||||
-Wl,-rpath-link,$(gb_Library_OUTDIRLOCATION)
|
||||
endef
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user