OS X uses clang as a default compiler. So remove incompatible options. Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx> Reviewed-by: Christoph Hellwig <hch@xxxxxx> --- 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 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs