gcc should not link specific nvidia libraries by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I compiled an application on my host which has a nvidia graphic card.
However, with default options, my binary is linked to vendor specific library name :
-----
j@dt:~/XXXXX_posix$ ldd XXXXX
(...)
libnvidia-tls.so.1 => /usr/lib/
(...)
j@dt:~/XXXXX_posix$
-----
Thus my application will not operate on a system which has no nvidia card.
Below are my gcc options into my Makefile :
-----
HEADERS=-I${QT_H} -I${QT_H}/QtCore -I${QT_H}/QtOpenGL -I${QT_H}/QtGui -I${QT_H}/QtXml -I${QT3D_H}/api -I${QT3D_H}/arrays -I${QT3D_H}/debug -I${QT3D_H}/effects -I${QT3D_
LIBS=-L$
(...)
XXXXX : ${OBJECTS}
${CXX} -s -pipe -o $@ ${OBJECTS} ${LIBS}
%.o : ${SRC_DIR}/%.cpp
${CXX} -c -O2 -pipe -Wno-write-strings -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB ${HEADERS} -o $@ $<
-----
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nvidia-current 195.36.
ProcVersionSign
Uname: Linux 2.6.32-40-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Sat Apr 14 19:07:22 2012
DkmsStatus:
virtualbox-ose, 3.1.6, 2.6.32-40-generic, x86_64: installed
virtualbox-ose, 3.1.6, 2.6.32-39-generic, x86_64: installed
virtualbox-ose, 3.1.6, 2.6.32-37-generic, x86_64: built
virtualbox-ose, 3.1.6, 2.6.32-38-generic, x86_64: installed
nvidia-current, 195.36.24, 2.6.32-40-generic, x86_64: installed
Lsusb:
Bus 002 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: System manufacturer System Product Name
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
LANG=fr_FR.utf8
SHELL=/bin/bash
SourcePackage: nvidia-
dmi.bios.date: 05/28/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0702
dmi.board.
dmi.board.name: M2N
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
system:
distro: Ubuntu
codename: lucid
architecture: x86_64
kernel: 2.6.32-40-generic
That version is no more supported; please open a new bug report if the actual archive found version also has the same issue.