From 739f68b9e45c925ccc5a28b9b796030272575e2b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Aug 2019 16:11:26 +0200 Subject: Link -ldl in bootstrap script/makefile --- bootstrap.gmake | 2 +- bootstrap.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.gmake b/bootstrap.gmake index e4d4b33..269d749 100644 --- a/bootstrap.gmake +++ b/bootstrap.gmake @@ -43,7 +43,7 @@ ifeq ($(OS),Windows_NT) chost := i686-w64-mingw32 override LIBS += -limagehlp else - override LIBS += -lpthread + override LIBS += -lpthread -ldl endif # Remove all the built-in rules, enable second expansion, etc. diff --git a/bootstrap.sh b/bootstrap.sh index 6eb570f..7d6a895 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -146,4 +146,4 @@ done # mode since 4.9 doesn't recognize c++1z. # set -x -"$cxx" "-I$libbutl" -I. -DBUILD2_BOOTSTRAP '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $r -lpthread +"$cxx" "-I$libbutl" -I. -DBUILD2_BOOTSTRAP '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $r -lpthread -ldl -- cgit v1.1