summaryrefslogtreecommitdiffstats
path: root/third_party/bzip2/bzip2.scons
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bzip2/bzip2.scons')
-rw-r--r--third_party/bzip2/bzip2.scons15
1 files changed, 9 insertions, 6 deletions
diff --git a/third_party/bzip2/bzip2.scons b/third_party/bzip2/bzip2.scons
index f1ad082..6089ea1 100644
--- a/third_party/bzip2/bzip2.scons
+++ b/third_party/bzip2/bzip2.scons
@@ -8,8 +8,17 @@ Configuration for building bzip2.lib / libbzip2.a.
Import('env')
+if env.WantSystemLib('bzip2'):
+ Return()
+
env = env.Clone()
+env.Append(
+ CPPDEFINES = [
+ 'BZ_NO_STDIO',
+ ],
+)
+
if env['PLATFORM'] == 'win32':
env.Append(
CCFLAGS = [
@@ -19,12 +28,6 @@ if env['PLATFORM'] == 'win32':
],
)
-env.Append(
- CPPDEFINES = [
- 'BZ_NO_STDIO',
- ],
-)
-
input_files = [
'blocksort.c',
'bzlib.c',