1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

Fix build with clang by not building .d files. (-Wp,-MMD...)

This commit is contained in:
Juergen Lock 2011-12-14 22:23:48 +00:00
parent f29716e6c5
commit 11b3076bba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287397

View File

@ -0,0 +1,15 @@
--- a/Make.rules
+++ b/Make.rules
@@ -14,10 +14,10 @@ LIB_RELEASE = 0
# And last various rules
%.o: %.c
- $(CC) -Wp,-MMD,"$*.d",-MQ,"$@",-MP -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
%.o: %.cpp
- $(CXX) -Wp,-MMD,"$*.d",-MQ,"$@",-MP -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
+ $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
%.so:
$(CC) -shared $(LDFLAGS) -Wl,-soname,$@.$(LIB_RELEASE) -o $@.$(LIB_RELEASE) $^ $(LIBS_$*)