More non-Linux build updates, mostly Darwin
Darwin's binary format does support symbols with differing visibilities, but it does not support the protected or internal visibilities- only hidden. For Darwin only, we should fall back to this visibility to prevent warnings from the compiler and because it is close enough for our library purposes. See http://gcc.gnu.org/viewcvs/*checkout*/trunk/gcc/config/darwin.c, search for the "darwin_assemble_visibility" function for more details. Also add pacman.static.exe to gitignore. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
d685d0220f
commit
c7a81c0b54
13
configure.ac
13
configure.ac
|
@ -172,13 +172,20 @@ GCC_VISIBILITY_CC
|
||||||
# Check if we have -fgnu89-inline flag
|
# Check if we have -fgnu89-inline flag
|
||||||
GCC_GNU89_INLINE_CC
|
GCC_GNU89_INLINE_CC
|
||||||
|
|
||||||
# Host-dependant flags
|
# Host-dependant definitions
|
||||||
case "${host}" in
|
case "${host_os}" in
|
||||||
*-*-cygwin*)
|
cygwin*)
|
||||||
|
host_os_cygwin=yes
|
||||||
CFLAGS="$CFLAGS -DCYGWIN"
|
CFLAGS="$CFLAGS -DCYGWIN"
|
||||||
;;
|
;;
|
||||||
|
darwin*)
|
||||||
|
host_os_darwin=yes
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
AM_CONDITIONAL([CYGWIN], test "x$host_os_cygwin" = "xyes")
|
||||||
|
AM_CONDITIONAL([DARWIN], test "x$host_os_darwin" = "xyes")
|
||||||
|
|
||||||
# Check for architecture, used in default makepkg.conf
|
# Check for architecture, used in default makepkg.conf
|
||||||
# (Note single space left after CARCHFLAGS)
|
# (Note single space left after CARCHFLAGS)
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
|
|
|
@ -10,8 +10,12 @@ DEFS = -DLOCALEDIR=\"@localedir@\" @DEFS@
|
||||||
AM_CFLAGS = -pedantic -D_GNU_SOURCE
|
AM_CFLAGS = -pedantic -D_GNU_SOURCE
|
||||||
|
|
||||||
if ENABLE_VISIBILITY_CC
|
if ENABLE_VISIBILITY_CC
|
||||||
|
if DARWIN
|
||||||
|
AM_CFLAGS += -fvisibility=hidden
|
||||||
|
else
|
||||||
AM_CFLAGS += -fvisibility=internal
|
AM_CFLAGS += -fvisibility=internal
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
if ENABLE_GNU89_INLINE_CC
|
if ENABLE_GNU89_INLINE_CC
|
||||||
AM_CFLAGS += -fgnu89-inline
|
AM_CFLAGS += -fgnu89-inline
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -3,3 +3,4 @@
|
||||||
pacman
|
pacman
|
||||||
pacman.exe
|
pacman.exe
|
||||||
pacman.static
|
pacman.static
|
||||||
|
pacman.static.exe
|
||||||
|
|
Loading…
Reference in New Issue