s3-build: allow gcov testing by linking timelimit with --coverage
[ira/wip.git] / source3 / Makefile.in
index b4b2a98cec1b169817a6ca38e8f826170351aba2..0a189b54ddf74fbec8dd5f84158675c3cf57b764 100644 (file)
@@ -3178,7 +3178,7 @@ bin/tdbtorture: $(BINARY_PREREQS) $(TDBTORTURE_OBJ) $(LIBTALLOC) $(LIBTDB)
 
 bin/timelimit: script/tests/timelimit.o
        @echo Linking $@
-       @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o
+       @$(CC) -o $@ $(DYNEXP) script/tests/timelimit.o $(LDFLAGS)
 
 bin/rpc_open_tcp: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) $(LIBTALLOC) $(LIBTDB) $(LIBWBCLIENT)
        @echo "Linking $@"