Sfoglia il codice sorgente

try to fix Imagemagick for Solaris

Ralf S. Engelschall 24 anni fa
parent
commit
2f2f93b151
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      imagemagick/imagemagick.spec

+ 5 - 1
imagemagick/imagemagick.spec

@@ -40,7 +40,7 @@ Source0:      ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-%{version}-5
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 0.9-20011025.0, make
+BuildPreReq:  OpenPKG, openpkg >= 0.9-20011025.0, make, gcc
 PreReq:       OpenPKG, openpkg >= 0.9-20011025.0
 AutoReq:      no
 AutoReqProv:  no
@@ -60,8 +60,11 @@ AutoReqProv:  no
     %setup -q -n ImageMagick-%{version}
 
 %build
+    PATH="%{l_prefix}/bin:$PATH"; export PATH
     CC="%{l_cc}" \
+    CXX="%{l_cxx}" \
     CFLAGS="%{l_cflags -O}" \
+    CXXFLAGS="%{l_cflags -O}" \
     ./configure \
         --prefix=%{l_prefix} \
         --without-magick-plus-plus \
@@ -73,6 +76,7 @@ AutoReqProv:  no
 
 %install
     rm -rf $RPM_BUILD_ROOT
+    PATH="%{l_prefix}/bin:$PATH"; export PATH
     %{l_make} %{l_mflags} install \
         prefix=$RPM_BUILD_ROOT%{l_prefix} \
         exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \