summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-10-13 12:04:07 +0000
committermaedhros <maedhros@openttd.org>2007-10-13 12:04:07 +0000
commit385a72febac5cb91894bf34e32455b2ae7c734fc (patch)
tree85ee27014b1d1194ad5907fede71086a8bbf9706 /config.lib
parent21547b46ef6a723474b4ed22dcee9bb3464a99c8 (diff)
downloadopenttd-385a72febac5cb91894bf34e32455b2ae7c734fc.tar.xz
(svn r11254) -Fix: Link with -lpthread on FreeBSD.
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index fb7bb312a..177485f04 100644
--- a/config.lib
+++ b/config.lib
@@ -882,6 +882,10 @@ make_cflags_and_ldflags() {
LIBS="$LIBS -pthread"
fi
+ if [ "$os" = "FREEBSD" ]; then
+ LIBS="$LIBS -lpthread"
+ fi
+
if [ "$os" = "OSX" ]; then
LDFLAGS="$LDFLAGS -framework Cocoa"
if [ "$enable_dedicated" = "0" ]; then