]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Makefile.in: Ignore build errors with nm command in Solaris
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 22 Jan 2022 13:31:38 +0000 (14:31 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 22 Jan 2022 13:35:56 +0000 (14:35 +0100)
The default output format is different and the grep don't find anything.

To be fixed later.

Makefile.in

index e93ee2d09429a7ef77e102d0d9356a4d6d265644..bad0b6f55e43b34ac77c123ab738072fd653a8d8 100644 (file)
@@ -389,13 +389,13 @@ all: $(PROG)
 $(PROG): $(OBJ) @V_PCAPDEP@ $(LIBNETDISSECT)
        @rm -f $@
        $(CC) $(FULL_CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBNETDISSECT) $(LIBS)
-       nm $(PROG) | grep ' [tT] ' > $(PROG)_instrument_functions.nm
+       nm $(PROG) | grep ' [tT] ' > $(PROG)_instrument_functions.nm || :
 
 instrument_all: $(PROG)
-       nm $(PROG) | grep ' [tT] ' > $(PROG)_instrument_functions.nm
+       nm $(PROG) | grep ' [tT] ' > $(PROG)_instrument_functions.nm || :
 
 instrument_global: $(PROG)
-       nm $(PROG) | grep ' [T] ' > $(PROG)_instrument_functions.nm
+       nm $(PROG) | grep ' [T] ' > $(PROG)_instrument_functions.nm || :
 
 $(LIBNETDISSECT): $(LIBNETDISSECT_OBJ)
        @rm -f $@