]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libe2p: apply LDFLAGS when building tests
authorFilipe Brandenburger <filbranden@google.com>
Fri, 27 May 2016 16:58:51 +0000 (12:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 28 May 2016 15:20:10 +0000 (11:20 -0400)
This was previously addressed by Michael Forney on commit 53904ae543591a
but it seems the test cases from lib/e2p (tst_ostype and tst_feature)
were missed.

Fix them by adding the same $(ALL_LDFLAGS) to those two targets.

Tested by building it on a system that depends on LDFLAGS to produce
working binaries and confirming that `make check` succeeds.

Reported-by: Eric Christopher <echristo@google.com>
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/e2p/Makefile.in

index 9931c77303da0130a3795c08ae6b3448f5dfcac3..193508b559d98ddc5681089a6aeba836b080f913 100644 (file)
@@ -68,12 +68,12 @@ e2p.pc: $(srcdir)/e2p.pc.in $(top_builddir)/config.status
 tst_ostype: $(srcdir)/ostype.c
        $(E) "  LD $@"
        $(Q) $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_ostype \
-               $(srcdir)/ostype.c $(ALL_CFLAGS)
+               $(srcdir)/ostype.c $(ALL_CFLAGS) $(ALL_LDFLAGS)
 
 tst_feature: $(srcdir)/feature.c
        $(E) "  LD $@"
        $(Q) $(CC) -DTEST_PROGRAM -I$(top_srcdir)/lib -o tst_feature \
-               $(srcdir)/feature.c $(ALL_CFLAGS)
+               $(srcdir)/feature.c $(ALL_CFLAGS) $(ALL_LDFLAGS)
 
 check::        tst_ostype tst_feature
        ./tst_ostype