Darwin, libcc1: Handle hosts with mdynamic-no-pic support.
The default for building host-side binaries for mdynamic-no-pic hosts is to enable this. However, it is not compatible with dynamic libraries, so must be switched off for libcc1. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> libcc1/ChangeLog: * Makefile.am: Switch mdynamic-no-pic to fPIC. * Makefile.in: Regenerated.
This commit is contained in:
parent
10abab4127
commit
b8870afdef
@ -28,6 +28,7 @@ AM_CXXFLAGS = $(WARN_FLAGS) $(WERROR) $(visibility) $(CET_HOST_FLAGS)
|
||||
if DARWIN_DYNAMIC_LOOKUP
|
||||
AM_CXXFLAGS += -Wl,-undefined,dynamic_lookup
|
||||
endif
|
||||
override CXXFLAGS := $(subst -mdynamic-no-pic,-fPIC,$(CXXFLAGS))
|
||||
override CXXFLAGS := $(filter-out -fsanitize=address,$(CXXFLAGS))
|
||||
override LDFLAGS := $(filter-out -fsanitize=address,$(LDFLAGS))
|
||||
# Can be simplified when libiberty becomes a normal convenience library.
|
||||
|
@ -806,6 +806,7 @@ uninstall-am: uninstall-cc1libLTLIBRARIES uninstall-pluginLTLIBRARIES
|
||||
|
||||
.PRECIOUS: Makefile
|
||||
|
||||
override CXXFLAGS := $(subst -mdynamic-no-pic,-fPIC,$(CXXFLAGS))
|
||||
override CXXFLAGS := $(filter-out -fsanitize=address,$(CXXFLAGS))
|
||||
override LDFLAGS := $(filter-out -fsanitize=address,$(LDFLAGS))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user