public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-9853] Darwin, libcc1: Handle hosts with mdynamic-no-pic support.
@ 2022-04-14 5:20 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2022-04-14 5:20 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b8870afdefd7a7f111bd76a80d3337bf623a991b
commit r11-9853-gb8870afdefd7a7f111bd76a80d3337bf623a991b
Author: Iain Sandoe <iainsandoe@Apollo-1-leo.local>
Date: Sun Jul 4 17:56:05 2021 +0100
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.
Diff:
---
libcc1/Makefile.am | 1 +
libcc1/Makefile.in | 1 +
2 files changed, 2 insertions(+)
diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am
index f148fdd7aa2..3b75e7d9290 100644
--- a/libcc1/Makefile.am
+++ b/libcc1/Makefile.am
@@ -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.
diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in
index 753d435c9cb..07fa9d94c83 100644
--- a/libcc1/Makefile.in
+++ b/libcc1/Makefile.in
@@ -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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-14 5:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-14 5:20 [gcc r11-9853] Darwin, libcc1: Handle hosts with mdynamic-no-pic support Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).