Skip to content

Commit

Permalink
add -headerpad_max_install_names option to osx linker
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Nov 11, 2023
1 parent 2167f91 commit 0dba6ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/config/makefile.h
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,7 @@ ifeq ($(TARGET),MACX64)
DEFINES = -DMACX
DEFINES += -DEXT_INT
LINK.f = $(FC) $(LDFLAGS) -Wl,-flat_namespace
LINK.f += -Wl,-headerpad_max_install_names
GOTCLANG= $(shell $(CC) -dM -E - </dev/null 2> /dev/null |grep __clang__|head -1|cut -c19)
ifeq ($(GOTCLANG),1)
COPTIONS += -fPIC
Expand Down

0 comments on commit 0dba6ed

Please sign in to comment.