]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
libaio: Link against standard libraries
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Oct 2018 10:31:40 +0000 (11:31 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Oct 2018 10:31:40 +0000 (11:31 +0100)
This patch fixes a build error when stack smashing protecion
is being enabled and __stack_chk_fail_local needs to be pulled
from libc.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/libaio

index 06c206b086af94015d5e54d3ef8a7583d0132cce..f71c58909b5a5e2cd5854396ab2ed247f7f95714 100644 (file)
@@ -73,6 +73,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && sed -e "s@-nostdlib -nostartfiles@@g" -i src/Makefile
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make prefix=/usr install
        @rm -rf $(DIR_APP)