1
0
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:
Alasdair Kergon 2002-01-31 20:15:26 +00:00
parent cabd882ced
commit 257f5ca091
2 changed files with 7 additions and 3 deletions

View File

@ -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
View File

@ -0,0 +1,5 @@
#define xx(a, b, c...) a
#include "commands.h"