diff options
Diffstat (limited to 'devel/libhoard/files/patch-Makefile.common')
-rw-r--r-- | devel/libhoard/files/patch-Makefile.common | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/devel/libhoard/files/patch-Makefile.common b/devel/libhoard/files/patch-Makefile.common new file mode 100644 index 0000000..7834d41 --- /dev/null +++ b/devel/libhoard/files/patch-Makefile.common @@ -0,0 +1,77 @@ +--- Makefile.common.orig Mon Apr 7 19:57:11 2003 ++++ Makefile.common Sun May 25 12:53:38 2003 +@@ -21,8 +21,17 @@ + # or supply new values as parameters to make, e.g.: + # make USE_WINDOWS=1 DEBUG=1 + ++ifeq ($(OSTYPE),freebsd) ++USE_FREEBSD = 1 ++USE_LINUX = 0 ++USE_HPUX = 0 ++USE_WINDOWS = 0 ++USE_SOLARIS = 0 ++UNIX = 1 ++endif + + ifeq ($(OSTYPE),hpux) ++USE_FREEBSD = 0 + USE_LINUX = 0 + USE_HPUX = 1 + USE_WINDOWS = 0 +@@ -31,6 +40,7 @@ + endif + + ifeq ($(OSTYPE),linux) ++USE_FREEBSD = 0 + USE_HPUX = 0 + USE_LINUX = 1 # Linux + USE_WINDOWS = 0 +@@ -39,6 +49,7 @@ + endif + + ifeq ($(OSTYPE),linux-gnu) ++USE_FREEBSD = 0 + USE_HPUX = 0 + USE_LINUX = 1 # Linux + USE_WINDOWS = 0 +@@ -47,6 +58,7 @@ + endif + + ifeq ($(OSTYPE),solaris) ++USE_FREEBSD = 0 + USE_HPUX = 0 + USE_LINUX = 0 + USE_WINDOWS = 0 +@@ -55,6 +67,7 @@ + endif + + ifeq ($(OS),Windows_NT) ++USE_FREEBSD = 0 + USE_HPUX = 0 + USE_LINUX = 0 + USE_WINDOWS = 1 +@@ -109,6 +122,15 @@ + # LIBSO = $(CC) -shared + endif + ++ifeq ($(USE_FREEBSD),1) ++ GNUC = 1 ++ VPATH = ../run-freebsd ++ FEATURES = ${PTHREAD_FLAGS} ++ LIBS = ${PTHREAD_LIBS} ++ UNIX = 1 ++endif ++ ++ + ifdef BROKEN + CPATH = /usr/bin/ + endif +@@ -127,7 +149,7 @@ + ifdef GNUC + CC = $(CPATH)gcc + CXX = $(CPATH)g++ +- FEATURES = -fPIC -D__STRICT_ANSI__ -D_GNU_SOURCE -D_REENTRANT -Wall -fno-exceptions #-fPIC ++ FEATURES = -fPIC -D__STRICT_ANSI__ -D_GNU_SOURCE -D_REENTRANT -Wall -fno-exceptions -Wno-deprecated + OPTIMIZE = -O6 -fexpensive-optimizations -finline-functions -fomit-frame-pointer -ffast-math + FEATURESXX = $(FEATURES) + OPTIMIZEXX = $(OPTIMIZE) |