mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +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 \
|
$(CC) -o lvm $(OBJECTS) $(LD_FLAGS) -L$(top_srcdir)/lib \
|
||||||
-L$(DESTDIR)/lib -llvm -ldevmapper $(LIBS)
|
-L$(DESTDIR)/lib -llvm -ldevmapper $(LIBS)
|
||||||
|
|
||||||
.commands: commands.h
|
.commands: commands.h cmdnames.h
|
||||||
$(CC) -E -P -Dxx\(a\)=a commands.h 2>/dev/null | \
|
$(CC) -E -P cmdnames.h | grep -v help > .commands
|
||||||
grep -v help > .commands
|
|
||||||
|
|
||||||
install: $(TARGETS)
|
install: $(TARGETS)
|
||||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) lvm \
|
$(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