openbsd-ports/net/xmlrpc-c/patches/patch-Makefile_common
ajacoutot 1d07e237ca - update to version 1.06.23
feedback and ok espie@
2008-03-15 10:35:54 +00:00

29 lines
885 B
Plaintext

$OpenBSD: patch-Makefile_common,v 1.2 2008/03/15 10:35:54 ajacoutot Exp $
--- Makefile.common.orig Fri Jul 13 02:32:20 2007
+++ Makefile.common Wed Jan 16 14:20:17 2008
@@ -32,11 +32,11 @@ CFLAGS_COMMON = -DNDEBUG
CXXFLAGS_COMMON = -DNDEBUG
ifeq ($(C_COMPILER_GNU),yes)
- CFLAGS_COMMON += $(GCC_C_WARNINGS) -fno-common -g -O3
+ CFLAGS_COMMON += $(GCC_C_WARNINGS) -O2 -g -pthread $(COPTS)
endif
ifeq ($(CXX_COMPILER_GNU),yes)
- CXXFLAGS_COMMON += $(GCC_CXX_WARNINGS) -g
+ CXXFLAGS_COMMON += $(GCC_CXX_WARNINGS) -O2 -g -pthread $(COPTS)
endif
DISTDIR = $(BUILDDIR)/$(PACKAGE)-$(VERSION)/$(SUBDIR)
@@ -259,6 +259,10 @@ $(ALL_OBJS): $(BUILDDIR)/include/xmlrpc-c/config.h
ifeq ($(SHARED_LIB_TYPE),unix)
include $(SRCDIR)/unix-common.make
+ endif
+
+ifeq ($(SHARED_LIB_TYPE),openbsd)
+ include $(SRCDIR)/openbsd-common.make
endif
ifeq ($(SHARED_LIB_TYPE),irix)