[PragmARC] Took advantage of external_as_list for LDFLAGS.
Björn Persson
rombobeorn at fedoraproject.org
Sat Aug 31 14:30:33 UTC 2013
commit 99bd589c2cc2a072e99b246e82a8f95d5edce0c5
Author: Björn Persson <bjorn at rombobjörn.se>
Date: Sat Aug 31 14:27:39 2013 +0200
Took advantage of external_as_list for LDFLAGS.
PragmARC.spec | 5 +++--
build_pragmarc.gpr | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/PragmARC.spec b/PragmARC.spec
index e1e459e..e7553d2 100644
--- a/PragmARC.spec
+++ b/PragmARC.spec
@@ -11,7 +11,8 @@ Source1: http://pragmada.x10hosting.com/pragmarc.zip
Source2: build_pragmarc.gpr
Source3: pragmarc.gpr
-BuildRequires: gcc-gnat fedora-gnat-project-common >= 3 dos2unix chrpath
+BuildRequires: gcc-gnat >= 4.7 fedora-gnat-project-common >= 3 dos2unix chrpath
+# Gnatmake learned about external_as_list sometime between 4.4 and 4.7.
# Build only on architectures where gcc-gnat is available:
ExclusiveArch: %{GNAT_arches}
@@ -57,7 +58,7 @@ cp -p %{SOURCE2} .
# Delete files that won't be used.
rm compile_all.adb assertion_handler.adb
# Compile the library.
-gnatmake -P build_pragmarc.gpr %{Gnatmake_optflags} -XDESTDIR=build_target -XLDFLAGS=%{__global_ldflags}
+gnatmake -P build_pragmarc.gpr %{Gnatmake_optflags} -XDESTDIR=build_target -XLDFLAGS='%{__global_ldflags}'
# Remove the unnecessary runpath that Gnatmake added.
chrpath --delete build_target%{_libdir}/libpragmarc.so.%{version}
# Convert line breaks.
diff --git a/build_pragmarc.gpr b/build_pragmarc.gpr
index 6a989c9..4f48193 100644
--- a/build_pragmarc.gpr
+++ b/build_pragmarc.gpr
@@ -18,7 +18,7 @@ project Build_PragmARC is
for Library_Src_Dir use Destdir & Directories.Includedir & "/pragmarc";
for Library_Dir use Destdir & Directories.Libdir;
for Library_ALI_Dir use Destdir & Directories.Libdir & "/pragmarc";
- for Library_Options use (external("LDFLAGS"));
+ for Library_Options use external_as_list("LDFLAGS", " ");
-- Put the binder files for different architectures in subdirectories where
-- they won't conflict with each other.
More information about the scm-commits
mailing list