]> git.pld-linux.org Git - packages/asterisk.git/commitdiff
- added Makefile_fix_gcc33.patch (hopefully fixes build on amd64)
authorAdam Gołębiowski <adamg@pld-linux.org>
Mon, 15 Nov 2004 19:55:42 +0000 (19:55 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- pass CC, CFLAGS and blank OPTIMIZE

Changed files:
    asterisk.spec -> 1.32

asterisk.spec

index c0b149d424d7610d3296b54d1346fb1251688c2a..dcb8adc3bcf7813911377483d28f171655394d1d 100644 (file)
@@ -21,6 +21,7 @@ Source0:      ftp://ftp.digium.com/pub/%{name}/%{name}-%{version}.tar.gz
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
 Patch0:                %{name}-openh323-makefile.patch
+Patch1:                %{name}-Makefile_fix_gcc33.patch
 # It's included, but these sources are broken by me :)
 # will fit on clean cvs source
 #Patch1:               %{name}-DESTDIR.patch
@@ -100,20 +101,27 @@ Pliki przyk
 
 %prep
 %setup -q
+%patch1 -p0
 #%patch0 -p1
 #%patch1 -p1
 #%patch2 -p1
 
 %build
 rm -f pbx/.depend
-%{__make}
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       OPTIMIZE=""
 
 %if %{with h323}
 # H323 plugin:
 cd channels/h323/
 %{__make} \
        PWLIBDIR="/usr" \
-       OPENH323DIR="/usr"
+       OPENH323DIR="/usr" \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       OPTIMIZE=""
 cd ../../
 %endif
 
This page took 0.088298 seconds and 4 git commands to generate.