Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 21488 - Always compile phobos library with -fPIC on POSIX targets #8154

Merged
merged 1 commit into from Jul 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 2 additions & 6 deletions posix.mak
Expand Up @@ -54,14 +54,10 @@ ifneq ($(BUILD),release)
endif
endif

# default to PIC on x86_64, use PIC=1/0 to en-/disable PIC.
# default to PIC, use PIC=1/0 to en-/disable PIC.
# Note that shared libraries and C files are always compiled with PIC.
ifeq ($(PIC),)
ifeq ($(MODEL),64) # x86_64
PIC:=1
else
PIC:=0
endif
PIC:=1
endif
ifeq ($(PIC),1)
override PIC:=-fPIC
Expand Down