[PATCH 03/11] xfsprogs: Change OS X-specific CFLAGS/LDFLAGS
Jan Tulak
jtulak at redhat.com
Mon Aug 17 11:23:18 CDT 2015
OS X uses clang as a default compiler.
So remove incompatible options.
Signed-off-by: Jan Tulak <jtulak at redhat.com>
Reviewed-by: Christoph Hellwig <hch at lst.de>
---
include/builddefs.in | 2 +-
libhandle/Makefile | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/builddefs.in b/include/builddefs.in
index cdf2d41..c644a17 100644
--- a/include/builddefs.in
+++ b/include/builddefs.in
@@ -118,7 +118,7 @@ ifeq ($(PKG_PLATFORM),gnukfreebsd)
PCFLAGS = -D_GNU_SOURCE $(GCCFLAGS)
endif
ifeq ($(PKG_PLATFORM),darwin)
-PCFLAGS = -traditional-cpp $(GCCFLAGS)
+PCFLAGS = $(GCCFLAGS)
DEPENDFLAGS = -D__APPLE__
endif
ifeq ($(PKG_PLATFORM),irix)
diff --git a/libhandle/Makefile b/libhandle/Makefile
index cc4ad1d..fe1a2af 100644
--- a/libhandle/Makefile
+++ b/libhandle/Makefile
@@ -10,7 +10,11 @@ LT_CURRENT = 1
LT_REVISION = 3
LT_AGE = 0
+ifeq ($(PKG_PLATFORM),darwin)
+LTLDFLAGS += -Wl,libhandle.sym
+else
LTLDFLAGS += -Wl,--version-script,libhandle.sym
+endif
CFILES = handle.c jdm.c
LSRCFILES = libhandle.sym
--
2.4.5
More information about the xfs
mailing list