[prev in list] [next in list] [prev in thread] [next in thread] 

List:       theora
Subject:    Re: [theora] how to specify more than one LDLFAGS
From:       Ralph Giles <giles () thaumas ! net>
Date:       2014-05-05 16:58:35
Message-ID: 5367C33B.4090303 () thaumas ! net
[Download RAW message or body]

On 2014-05-05 1:20 AM, YIRAN LI wrote:
> Hi friends,
> 
> I'm build libtheora on MingW W64 and want to get rid of the dependency
> on libgcc_s_sjlj-1.dll. I tried to use LDFLAGS=-static-libgcc but seems
> it doesn't work.
> 
> Someone told me I should use  -static-libgcc -static-libstdc++, but I
> don't know how to set it. Should I use 
> ./configure LDFLAGS="-static-libgcc -static-libstdc++" 
> or 
> ./configure LDFLAGS=-static-libgcc LDFLAGS= -static-libstdc++

You must do the former. If you pass the same variable multiple times the
last definition overrides the earlier ones.

That said, I wouldn't expect -static-libstdc++ to help, unless you're
building theora as part of a C++ application. The codec library is
entirely in C, no C++.

I can't find documenation for a -static-libc option in the GCC or GNU ld
manuals, although it is mentioned in a stack overflow post. Maybe it
doesn't work because your compiler doesn't support it? Have you tried
just 'LDFLAGS=-static' ?

 -r
_______________________________________________
theora mailing list
theora@xiph.org
http://lists.xiph.org/mailman/listinfo/theora
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic