diff options
author | nox <nox@FreeBSD.org> | 2011-12-15 06:23:48 +0800 |
---|---|---|
committer | nox <nox@FreeBSD.org> | 2011-12-15 06:23:48 +0800 |
commit | 55e0ff21a58cce0f120c23230d35858e14879432 (patch) | |
tree | f8bfb1c09db46570ea8ae0a8372f249372726d44 /net/usbredir | |
parent | 45d9085ac351430c6c3809914547738e61d25348 (diff) | |
download | freebsd-ports-gnome-55e0ff21a58cce0f120c23230d35858e14879432.tar.gz freebsd-ports-gnome-55e0ff21a58cce0f120c23230d35858e14879432.tar.zst freebsd-ports-gnome-55e0ff21a58cce0f120c23230d35858e14879432.zip |
Fix build with clang by not building .d files. (-Wp,-MMD...)
Diffstat (limited to 'net/usbredir')
-rw-r--r-- | net/usbredir/files/patch-clang | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/usbredir/files/patch-clang b/net/usbredir/files/patch-clang new file mode 100644 index 000000000000..ecd7842aa849 --- /dev/null +++ b/net/usbredir/files/patch-clang @@ -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_$*) |