Re-added the Haiku makefiles.

This commit is contained in:
Pietro Gagliardi 2015-12-11 20:26:26 -05:00
parent d05b374a05
commit 18c5a6fd19
2 changed files with 12 additions and 7 deletions

View File

@ -31,17 +31,21 @@ CXXFILES += \
HFILES += \
haiku/uipriv_haiku.hpp
# thanks ebassi in irc.gimp.net/#gtk+
CXXFLAGS += \
-D_UI_EXTERN='__attribute__((visibility("default"))) extern' \
-fvisibility=hidden \
-fPIC
# TODO split into a separate file or put in GNUmakefile.libui somehow?
# flags for the Haiku API
LDFLAGS += \
-fvisibility=hidden \
-fPIC \
-lbe
# flags for building a shared library
LDFLAGS += \
-shared
# flags for warning on undefined symbols
LDFLAGS += \
-Wl,--no-undefined -Wl,--no-allow-shlib-undefined
# flags for setting soname
# TODO is this correct for Haiku?
LDFLAGS += \
-Wl,-soname,$(NAME)$(SUFFIX).$(SOVERSION)

View File

@ -3,6 +3,7 @@
EXESUFFIX =
LIBSUFFIX = .so
OSHSUFFIX = .hpp
TOOLCHAIN = gcc
# Force GCC 4; GCC 2 is not supported.
gccver = $(shell $(CC) --version | sed 's/-.*//g')