fix some undefined-non-weak-symbols warnings

This commit is contained in:
Miroslav Lichvar 2011-08-30 15:10:53 +02:00
parent 03a021ec4e
commit ea491497c0
2 changed files with 10 additions and 1 deletions

View File

@ -24,6 +24,15 @@ diff -up gpsd-3.1/SConstruct.scons gpsd-3.1/SConstruct
# Map options to libraries required to support them that might be absent. # Map options to libraries required to support them that might be absent.
optionrequires = { optionrequires = {
@@ -686,7 +685,7 @@ compiled_gpslib = Library(env=env,
compiled_gpsdlib = Library(env=env,
target="gpsd",
sources=libgpsd_sources,
- version=libversion, parse_flags=usblibs + rtlibs + bluezlibs)
+ version=libversion, parse_flags=usblibs + bluezlibs + [ "-lm", "-lgps"])
libraries = [compiled_gpslib, compiled_gpsdlib]
@@ -896,7 +895,7 @@ if st != 0: @@ -896,7 +895,7 @@ if st != 0:
from datetime import datetime from datetime import datetime
rev = datetime.now().isoformat()[:-4] rev = datetime.now().isoformat()[:-4]

View File

@ -10,7 +10,7 @@ Source0: http://download.berlios.de/gpsd/%{name}-%{version}.tar.gz
Source10: gpsd.service Source10: gpsd.service
Source11: gpsd.sysconfig Source11: gpsd.sysconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# fix RPATH, CFLAGS and revision.h # fix RPATH, libs and revision.h
Patch0: gpsd-scons.patch Patch0: gpsd-scons.patch
BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel