Skip to content

Commit

Permalink
Check whether ld supports -Bsymbolic-functions flag
Browse files Browse the repository at this point in the history
should fix JuliaLang#9753
  • Loading branch information
tkelman committed Jan 13, 2015
1 parent 57ebb6c commit 373333e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,14 @@ endif
ifeq ($(OS), Linux)
OSLIBS += -ldl -lrt -lpthread -Wl,--export-dynamic -Wl,--version-script=$(JULIAHOME)/src/julia.expmap -Wl,--no-whole-archive $(LIBUNWIND)
JLDFLAGS = -Wl,-Bdynamic
ifeq (-Bsymbolic-functions, $(shell $(LD) --help | grep -o -e "-Bsymbolic-functions"))
JLIBLDFLAGS = -Wl,-Bsymbolic-functions
else
JLIBLDFLAGS =
endif
else #Linux
JLIBLDFLAGS =
endif

ifeq ($(OS), FreeBSD)
JLDFLAGS = -Wl,-Bdynamic
Expand Down

0 comments on commit 373333e

Please sign in to comment.