[opensuse-packaging] Undefined symbols in shared libraries, a question
Hi: IS there any "hackish" (or practical) way to disallow all kinds of undefined symbols during build that does not involve using LDFLAGS -no-undefined or --unresolved-symbols=method .. etc. A pack of cookies if it also does not involve dealing with libtool or any patching whatsoever. something like export I_DONT_WANT_UNDEFINED_SYMBOLS=TRUE and the compiler, linker etc automatically knows about it ? Cheers. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 31 August 2011 05:22, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
Hi:
IS there any "hackish" (or practical) way to disallow all kinds of undefined symbols during build that does not involve using LDFLAGS -no-undefined or --unresolved-symbols=method .. etc.
A pack of cookies if it also does not involve dealing with libtool or any patching whatsoever. something like
export I_DONT_WANT_UNDEFINED_SYMBOLS=TRUE
and the compiler, linker etc automatically knows about it ?
I did it the other way around, but: https://build.opensuse.org/package/view_file?project=home%3ARedDwarf&package... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 31/08/11 06:01, Cristian Morales Vega wrote:
I did it the other way around, but: https://build.opensuse.org/package/view_file?project=home%3ARedDwarf&package...
That's certainly useful for custom projects, but kinda a hammer for a complete distro ;) It will be cool if such feature is available though, using LDFLAGS is not really a solution because i.e gcc ... -lfoo -Wl,--no-undefined ... -lbar behaves differently than gcc .. -Wl,--no-undefined ...-lfoo -bar and there are many packages that place LDFLAGS in random incorrect places... :-| -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi, On Wed, 31 Aug 2011, Cristian Rodríguez wrote:
On 31/08/11 06:01, Cristian Morales Vega wrote:
I did it the other way around, but: https://build.opensuse.org/package/view_file?project=home%3ARedDwarf&package...
That's certainly useful for custom projects, but kinda a hammer for a complete distro ;)
Well, apart from this or similar hacks directly in binutils there's no way to do what you want. Ciao, Michael.
participants (3)
-
Cristian Morales Vega
-
Cristian Rodríguez
-
Michael Matz