summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-10 14:33:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-10 14:33:30 +0000
commiteedce11c9606f24d339d8055fd9d0f995b4e0951 (patch)
treeaeac611b50ff6a957d78605ea69a2d673cd0451e /configure
parent9dbd7d10ac81c6445c58f4abb4f0eff240a8f9d2 (diff)
Add -pthread link flag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8875 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 72719a478..904f1c7f5 100755
--- a/configure
+++ b/configure
@@ -1047,7 +1047,7 @@ our $SHARED = "";
sub getosflags {
- $config{LDLIBS} = "-lstdc++";
+ $config{LDLIBS} = "-pthread -lstdc++";
$config{FLAGS} = "-fPIC -Wall $config{OPTIMISATI}";
$config{DEVELOPER} = "-fPIC -Wall -g";
$SHARED = "-Wl,--rpath -Wl,$config{LIBRARY_DIR} -shared" unless defined $opt_disablerpath;
@@ -1056,7 +1056,7 @@ sub getosflags {
if ($config{OSNAME} =~ /darwin/i) {
$config{FLAGS} = "-DDARWIN -frtti -fPIC -Wall $config{OPTIMISATI}";
$SHARED = "-bundle -twolevel_namespace -undefined dynamic_lookup";
- $config{LDLIBS} = "-ldl -lstdc++";
+ $config{LDLIBS} = "-ldl -pthread -lstdc++";
}
if ($config{OSNAME} =~ /OpenBSD/i) {
@@ -1074,7 +1074,7 @@ sub getosflags {
}
if ($config{OSNAME} =~ /Linux/i) {
- $config{LDLIBS} = "-ldl -lstdc++";
+ $config{LDLIBS} = "-ldl -lstdc++ -pthread";
$config{FLAGS} = "-fPIC -Wall $config{OPTIMISATI}";
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
$config{LDLIBS} .= " " . $ENV{LDLIBS} if exists($ENV{LDLIBS});
@@ -1094,7 +1094,7 @@ sub getosflags {
# rt = POSIX realtime extensions
# resolv = inet_aton only (why isnt this in nsl?!)
$config{MAKEPROG} = "gmake";
- $config{LDLIBS} .= " -lsocket -lnsl -lrt -lresolv";
+ $config{LDLIBS} .= " -lsocket -lnsl -lrt -lresolv -pthread";
return "Solaris";
}