Try to use -fvisibility=hidden when DISABLE_DYNLOADING

Change-Id: I92a5de2344e82f99ac94608e1455afa8c33bd54a
This commit is contained in:
Tor Lillqvist 2012-11-19 12:21:12 +02:00 committed by Tor Lillqvist
parent b6c016da23
commit f83cf4e4c0
3 changed files with 11 additions and 1 deletions

View File

@ -129,6 +129,11 @@ CFLAGS:=-g
.ELSE
CFLAGS:=-O
.ENDIF
.IF "$(DISABLE_DYNLOADING)"=="TRUE"
CFLAGS+=-fvisibility=hidden
.ENDIF
.IF "$(COM)"=="C52" && "$(CPU)"=="U"
CFLAGS+=-m64
.ENDIF

View File

@ -104,8 +104,12 @@ LDFLAGS:=-Wl,-z,origin -Wl,-rpath,'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib' -Wl,-n
LDFLAGS:=-Wl,-R'$$$$ORIGIN:$$$$ORIGIN/../ure-link/lib'
.ENDIF # "$(OS)$(COM)"=="SOLARISC52"
.IF "$(DISABLE_DYNLOADING)"=="TRUE"
CFLAGS=-fvisibility=hidden
.ENDIF
.IF "$(COM)"=="C52" && "$(CPU)"=="U"
CFLAGS=-m64
CFLAGS+=-m64
.EXPORT: CFLAGS
.ENDIF

View File

@ -145,6 +145,7 @@ CONFIGURE_DIR=
CONFIGURE_ACTION=.$/configure PATH="..$/..$/..$/bin:$$PATH"
CONFIGURE_FLAGS=--disable-gtk-doc --with-openssl-digests --with-xml-parser=libxml --with-raptor=system --with-rasqual=system --without-bdb --without-sqlite --without-mysql --without-postgresql --without-threestore --with-regex-library=posix --with-decimal=none --with-www=xml
.IF "$(OS)"=="IOS" || "$(OS)"=="ANDROID"
CFLAGS=-fvisibility=hidden
CONFIGURE_FLAGS+= --disable-shared
.ELSE
CONFIGURE_FLAGS+= --disable-static