summaryrefslogtreecommitdiff
path: root/curl/curl/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'curl/curl/buildfile')
-rw-r--r--curl/curl/buildfile11
1 files changed, 2 insertions, 9 deletions
diff --git a/curl/curl/buildfile b/curl/curl/buildfile
index f458c0e..cdd8f9f 100644
--- a/curl/curl/buildfile
+++ b/curl/curl/buildfile
@@ -11,17 +11,10 @@ tsys = $c.target.system
# Build options.
#
-c.poptions += -DHAVE_CONFIG_H
+c.poptions += -DBUILDING_CURL -DHAVE_CONFIG_H
-# Note that the upstream package uses the -pthread compiler/linker option on
-# Linux and FreeBSD. The option is unsupported by build2 so we pass
-# -D_REENTRANT and -lpthread preprocessor/linker options instead.
-#
switch $tclass, $tsys
{
- case 'linux' | 'bsd'
- c.poptions += -D_REENTRANT
-
case 'windows', 'win32-msvc'
c.poptions += -DWIN32
}
@@ -50,7 +43,7 @@ switch $c.class
switch $tclass, $tsys
{
case 'linux' | 'bsd'
- c.libs += -lpthread
+ c.libs += -pthread
case 'windows', 'mingw32'
c.libs+= -lws2_32