Commits

Anders F Björklund committed 9fc2ac8

avoid duplicate cppdefault symbols

Comments (0)

Files changed (1)

 # Tell GNU make to ignore these if they exist.
 .PHONY: D d
 
-D_BORROWED_C_OBJS=attribs.o cppdefault.o
+D_BORROWED_C_OBJS=attribs.o
+ifdef D_is_apple_ver
+  ifeq ($(D_gcc_main_ver),4.2)
+    D_BORROWED_C_OBJS += cppdefault.o
+  endif
+else
+  ifeq ($(D_gcc_main_ver),4.2)
+    D_BORROWED_C_OBJS += cppdefault.o
+  endif
+  ifeq ($(D_gcc_main_ver),4.3)
+    D_BORROWED_C_OBJS += cppdefault.o
+  endif
+endif
 
 D_INCLUDES = -I$(srcdir)/d -I$(srcdir)/$(D_dmd_srcdir) -Id
 # -Wno-long-double is for MacOS X -- needs to be configurated