From d685d0220fdb16097252bcf851ada5cf8400da0e Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 14 Apr 2008 21:01:30 -0500 Subject: Fix gettext on non-Linux platforms Linux includes all the gettext stuff in glibc, so there is no need for the libintl links which we failed to include in our linker variables. Update the makefiles which should enable NLS support on all platforms, including OS X and Cygwin. Signed-off-by: Dan McGee --- lib/libalpm/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/Makefile.am') diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am index 6549066f..00fc0b38 100644 --- a/lib/libalpm/Makefile.am +++ b/lib/libalpm/Makefile.am @@ -40,5 +40,6 @@ libalpm_la_SOURCES = \ util.h util.c libalpm_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_INFO) +libalpm_la_LIBADD = $(LTLIBINTL) # vim:set ts=2 sw=2 noet: -- cgit v1.2.3-24-g4f1b From c7a81c0b54c3b54e25978e9828c6dc91f113c19c Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 15 Apr 2008 15:57:36 -0500 Subject: 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 --- lib/libalpm/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libalpm/Makefile.am') diff --git a/lib/libalpm/Makefile.am b/lib/libalpm/Makefile.am index 00fc0b38..14d42a0c 100644 --- a/lib/libalpm/Makefile.am +++ b/lib/libalpm/Makefile.am @@ -10,8 +10,12 @@ DEFS = -DLOCALEDIR=\"@localedir@\" @DEFS@ AM_CFLAGS = -pedantic -D_GNU_SOURCE if ENABLE_VISIBILITY_CC +if DARWIN +AM_CFLAGS += -fvisibility=hidden +else AM_CFLAGS += -fvisibility=internal endif +endif if ENABLE_GNU89_INLINE_CC AM_CFLAGS += -fgnu89-inline endif -- cgit v1.2.3-24-g4f1b