]> git.pld-linux.org Git - packages/env-update.git/commitdiff
- pass CFLAGS (fixed Makefile)
authortwittner <twittner@pld-linux.org>
Sat, 25 Mar 2006 16:58:46 +0000 (16:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    env-update-cflags.patch -> 1.1
    env-update.spec -> 1.2

env-update-cflags.patch [new file with mode: 0644]
env-update.spec

diff --git a/env-update-cflags.patch b/env-update-cflags.patch
new file mode 100644 (file)
index 0000000..c79a7be
--- /dev/null
@@ -0,0 +1,11 @@
+--- rc-scripts-1.6.14/src/filefuncs/Makefile~  2003-04-06 18:28:27.000000000 +0200
++++ rc-scripts-1.6.14/src/filefuncs/Makefile   2006-03-25 17:55:00.000000000 +0100
+@@ -6,7 +6,7 @@
+ all: $(TARGETS)
+ filefuncs.o: filefuncs.c
+-      $(CC) -shared -Wall -DHAVE_CONFIG_H -c -O -fPIC -I/usr/include/awk $^
++      $(CC) -shared -Wall -DHAVE_CONFIG_H -c $(CFLAGS) -fPIC -I/usr/include/awk $^
+ filefuncs.so: filefuncs.o
+       $(LD) -o $@ -shared $^
index 6f69fbecb1fb7b3190accb66458729b31a6482c3..6b6dbd1cb250ad8a9b39c0849812082d4bfd5f32 100644 (file)
@@ -7,6 +7,7 @@ Group:          Base
 Source0:       http://distfiles.gentoo.org/distfiles/rc-scripts-%{version}.tar.bz2
 # Source0-md5: 3ef9ae479847d474c33d7d54f4912e77
 Patch0:                %{name}.patch
+Patch1:                %{name}-cflags.patch
 BuildRequires: gawk-devel
 Requires:      gawk
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -21,11 +22,13 @@ loads.
 %prep
 %setup -q -n rc-scripts-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} -C src/filefuncs \
        CC="%{__cc}" \
-       LD="%{__ld}"
+       CFLAGS="%{rpmcflags}" \
+       LD="%{__ld}" 
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.064875 seconds and 4 git commands to generate.