commit 851079e26a197c14a312c28a42e8c9b4cc3fd2a1
Author: Jan RÄ™korajski <[email protected]>
Date:   Sun Nov 3 18:07:15 2019 +0100

    - filter out compile flag that clang can't grok

 postgis.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/postgis.spec b/postgis.spec
index 869b192..3292dd5 100644
--- a/postgis.spec
+++ b/postgis.spec
@@ -19,6 +19,7 @@ Source0:      
https://download.osgeo.org/postgis/source/%{name}-%{version}%{subver}.t
 Patch0:                install-lwgeom.patch
 URL:           http://postgis.refractions.net/
 %{?with_raster:BuildRequires:  gdal-devel >= 1.8.0}
+BuildRequires: clang
 BuildRequires: geos-devel >= 3.5.0
 BuildRequires: json-c-devel
 BuildRequires: libstdc++-devel
@@ -46,6 +47,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                specflags_x86_64        -fPIC
 
+# clang can't parse this
+%define                filterout               -fvar-tracking-assignments
+
 # oh well... I also don't understand this... ;)
 
 %description
@@ -121,7 +125,7 @@ export CFLAGS="%{rpmcflags} 
-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
        %{?with_gui:--with-gui} \
        %{!?with_raster:--without-raster}
 
-%{__make} -j1
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postgis.git/commitdiff/851079e26a197c14a312c28a42e8c9b4cc3fd2a1

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to