mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Remove gcc -D to support as different gcc versions handle it differently.
This commit is contained in:
parent
cabd882ced
commit
257f5ca091
@ -63,9 +63,8 @@ lvm: $(OBJECTS) $(top_srcdir)/lib/liblvm.a
|
||||
$(CC) -o lvm $(OBJECTS) $(LD_FLAGS) -L$(top_srcdir)/lib \
|
||||
-L$(DESTDIR)/lib -llvm -ldevmapper $(LIBS)
|
||||
|
||||
.commands: commands.h
|
||||
$(CC) -E -P -Dxx\(a\)=a commands.h 2>/dev/null | \
|
||||
grep -v help > .commands
|
||||
.commands: commands.h cmdnames.h
|
||||
$(CC) -E -P cmdnames.h | grep -v help > .commands
|
||||
|
||||
install: $(TARGETS)
|
||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) lvm \
|
||||
|
5
tools/cmdnames.h
Normal file
5
tools/cmdnames.h
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
#define xx(a, b, c...) a
|
||||
|
||||
#include "commands.h"
|
||||
|
Loading…
Reference in New Issue
Block a user