diff options
Diffstat (limited to 'multimedia/ffmpeg2theora/files/patch-SConstruct')
-rw-r--r-- | multimedia/ffmpeg2theora/files/patch-SConstruct | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/multimedia/ffmpeg2theora/files/patch-SConstruct b/multimedia/ffmpeg2theora/files/patch-SConstruct index 9d37ce376f6b..3ea68362898d 100644 --- a/multimedia/ffmpeg2theora/files/patch-SConstruct +++ b/multimedia/ffmpeg2theora/files/patch-SConstruct @@ -5,7 +5,7 @@ BoolVariable('crossmingw', 'Set to 1 for crosscompile with mingw', 0) ) -env = Environment(options = opts) -+env = Environment(options = opts, CC = Split(os.environ['CC']), CCFLAGS = Split(os.environ['CCFLAGS'])) ++env = Environment(options = opts, CC = Split(os.environ['CC'])) Help(opts.GenerateHelpText(env)) pkg_flags="--cflags --libs" @@ -17,3 +17,11 @@ "libavutil", ] if os.path.exists("./ffmpeg"): +@@ -203,6 +202,7 @@ + if conf.CheckLib('iconv'): + env.Append(LIBS=['iconv']) + ++ env.Append(LIBS=['m']) + if env['crossmingw']: + env.Append(CCFLAGS=['-Wl,-subsystem,windows']) + env.Append(LIBS=['m']) |