http://bugs.freedesktop.org/show_bug.cgi?id=21777
Summary: libdrm-2.4.11 fails with LDFLAGS="-Wl,--as-needed"
Product: DRI
Version: XOrg CVS
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: libdrm
AssignedTo: [email protected]
ReportedBy: [email protected]
Distro: Gentoo-Linux
Gcc: 4.3.2
without as-needed it compiles fine.
Code:
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc
-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common
-Wl,--hash-style=gnu -Wl,--as-needed -o drmstat drmstat.o ../libdrm/libdrm.la
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc
-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--sort-common
-Wl,--hash-style=gnu -Wl,--as-needed -o dristat dristat.o ../libdrm/libdrm.la
libtool: link: i686-pc-linux-gnu-gcc -march=athlon64-sse3 -O2 -pipe
-fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -o
.libs/drmstat drmstat.o -Wl,--as-needed ../libdrm/.libs/libdrm.so
libtool: link: i686-pc-linux-gnu-gcc -march=athlon64-sse3 -O2 -pipe
-fomit-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -o
.libs/dristat dristat.o -Wl,--as-needed ../libdrm/.libs/libdrm.so
dristat.o: In function `drmWaitVBlank':
dristat.c:(.text+0x1a3f): undefined reference to `clock_gettime'
dristat.c:(.text+0x1a94): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [dristat] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory
`/var/tmp/portage/x11-libs/libdrm-2.4.11/work/libdrm-2.4.11/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/x11-libs/libdrm-2.4.11/work/libdrm-2.4.11/tests'
make: *** [all-recursive] Error 1
*
* ERROR: x11-libs/libdrm-2.4.11 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 3097: Called x-modular_src_compile
* environment, line 3877: Called x-modular_src_make
* environment, line 3916: Called die
* The specific snippet of code:
* emake || die "emake failed"
* The die message:
* emake failed
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel