test-amalgamation: fix compilation options
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 23 Apr 2019 21:18:11 +0000 (21:18 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 23 Apr 2019 21:18:11 +0000 (21:18 +0000)
Use the same compilation options to compile lz4_all.c and other object files.

Fixes: a7e8d394 ("[amalgamation] add test")

tests/Makefile

index f327535..36cb26a 100644 (file)
@@ -159,7 +159,7 @@ test32: test
 .PHONY: test-amalgamation
 test-amalgamation: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c $(LZ4DIR)/lz4frame.c
        cat $^ > lz4_all.c
-       $(CC) -I$(LZ4DIR) -c lz4_all.c
+       $(CC) $(CFLAGS) $(CPPFLAGS) -c lz4_all.c
        $(RM) lz4_all.c
 
 test-install: lz4 lib liblz4.pc