aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-22 16:11:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-22 16:11:26 +0200
commit739f68b9e45c925ccc5a28b9b796030272575e2b (patch)
tree37314cbcca1097e95e74ea4228f5a5bf1985a7df
parentf9ad47ad11f1166b038a57ad5d3691414c05b050 (diff)
Link -ldl in bootstrap script/makefile
-rw-r--r--bootstrap.gmake2
-rwxr-xr-xbootstrap.sh2
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