openbsd-ports/net/xmlrpc-c/patches/patch-Makefile_common
espie 31e4f1d7d2 xmlrpc C/C++ library, prereq for newer cmake.
Also, makes sense to take this code out, as some other stuff is bound
to want this at some point.

This library is incredibly sloppy engineering. Reasonably readable
code, looks sensible, but incredible lack of testing (doesn't even pass
its own testsuite on a stable release... and does a lot of things that
can't work outside of linux... makes you wonder who is actually using
this...)
2006-12-18 14:39:56 +00:00

29 lines
875 B
Plaintext

$OpenBSD: patch-Makefile_common,v 1.1.1.1 2006/12/18 14:39:56 espie Exp $
--- Makefile.common.orig Wed Aug 30 04:59:05 2006
+++ Makefile.common Mon Dec 18 12:58:57 2006
@@ -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-
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)