From 96f2cfb243485c028fa8c0da7de486e0003695e1 Mon Sep 17 00:00:00 2001 From: Jan Tulak Date: Tue, 18 Aug 2015 17:53:17 +1000 Subject: [PATCH] build: Change OS X-specific CFLAGS/LDFLAGS OS X uses clang as a default compiler. So remove incompatible options. Signed-off-by: Jan Tulak Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- 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 cdf2d41cc..c644a17f8 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 cc4ad1d04..fe1a2af69 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.47.2