On Wednesday 10 March 2010 06:16:38 pm Michael Matz wrote:
Hello,
On Wed, 10 Mar 2010, Michal Vyskocil wrote:
The second run with -lGL gcc -o conftest -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack- protector -funwind-tables -fasynchronous-unwind-tables -fno-strict-aliasing - Wl,--trace,--trace-symbol=glTexParameterf -DNDEBUG -fno-stack-protector - DNARROWPROTO -m64 -I$(top_srcdir)/modules/core/includes/ - I$(top_srcdir)/libs/MALLOC/includes/ - I$(top_srcdir)/modules/localization/includes/ -L/usr/lib/jni - L/usr/lib64/jni/ -L./thirdparty/ -L./bin/ -lGL conftest.c -ljogl >&5
You need to put the -lGL argument after the conftest.c argument. In the buildservice the semantics of shared library linking is a bit stricter and similar to static libraries. It's a side-effect of doing library as-needed processing by default in the buildsystem (but only when building packages from .spec file).
Marcus and Michael, thanks a lot - I removed the LDFLAGS hack in configure.ac and added -lGL as last argument of AC_CHECK_LIB and it works well. Regards Michal Vyskocil
Ciao, Michael.