Add fPIC to ppp-manager compile options for x86-64

This commit is contained in:
Daniel Williams 2007-08-30 23:49:36 +00:00
parent 1e0e6b259c
commit f11d3ac207
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- NetworkManager-0.7.0/src/ppp-manager/Makefile.am.fpic 2007-08-30 19:41:49.000000000 -0400
+++ NetworkManager-0.7.0/src/ppp-manager/Makefile.am 2007-08-30 19:42:00.000000000 -0400
@@ -33,7 +33,7 @@ nm_pppd_plugin_so_SOURCES = \
nm-pppd-plugin.h \
nm-ppp-status.h
-nm_pppd_plugin_so_CPPFLAGS = $(DBUS_CFLAGS) $(GLIB_CFLAGS)
+nm_pppd_plugin_so_CPPFLAGS = $(DBUS_CFLAGS) $(GLIB_CFLAGS) -fPIC
nm_pppd_plugin_so_LDFLAGS = -shared
nm_pppd_plugin_so_LDADD = \

View File

@ -21,6 +21,7 @@ Source: %{name}-%{version}.%{snapshot}.tar.gz
Source1: nm-applet-%{version}.svn129.tar.gz Source1: nm-applet-%{version}.svn129.tar.gz
Patch1: NetworkManager-0.6.5-fixup-internal-applet-build.patch Patch1: NetworkManager-0.6.5-fixup-internal-applet-build.patch
Patch2: NetworkManager-0.7.0-missing-includes.patch Patch2: NetworkManager-0.7.0-missing-includes.patch
Patch3: NetworkManager-0.7.0-ppp-manager-fpic.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
PreReq: chkconfig PreReq: chkconfig
@ -119,6 +120,7 @@ NetworkManager functionality from applications that use glib.
%prep %prep
%setup -q %setup -q
%patch2 -p1 -b .missing-includes %patch2 -p1 -b .missing-includes
%patch3 -p1 -b .fpic
# unpack the applet # unpack the applet
tar -xzf %{SOURCE1} tar -xzf %{SOURCE1}