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:
parent
f29716e6c5
commit
11b3076bba
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287397
15
net/usbredir/files/patch-clang
Normal file
15
net/usbredir/files/patch-clang
Normal 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_$*)
|
Loading…
Reference in New Issue
Block a user