[poppler] 3 commits - autogen.sh configure.ac .gitignore

Adrian Johnson ajohnson at kemper.freedesktop.org
Sat Sep 27 01:49:31 PDT 2014


 .gitignore   |    2 ++
 autogen.sh   |    2 +-
 configure.ac |   12 +++++++++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

New commits:
commit 70a851b0cc58241d1f2f6bc48af2614595326c8f
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sat Sep 6 21:16:04 2014 +0930

    Update .gitignore

diff --git a/.gitignore b/.gitignore
index 65b1836..2e27da2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,6 +29,8 @@ poppler.pc
 stamp-h1
 gtk-doc.make
 *.o
+*~
+*.exe
 poppler-cairo-uninstalled.pc
 poppler-cpp-uninstalled.pc
 poppler-glib-uninstalled.pc
commit d44e7e3560bdc79253df98db05385dce3e8ccbb4
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sat Sep 6 21:53:21 2014 +0930

    Don't use -fPIC on mingw
    
    it emits a warning for every file stating that -fPIC is ignored

diff --git a/configure.ac b/configure.ac
index 70c2038..7a34f82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -822,7 +822,17 @@ case "$enable_compile_warnings" in
 		-Wmissing-format-attribute -fno-exceptions -fno-check-new \
 		-fno-common $CXXFLAGS" ;;
 esac
-CXXFLAGS="-fPIC $CXXFLAGS";
+
+case "$host_os" in
+  mingw*)
+    # mingw prints "warning: -fPIC ignored for target (all code is position independent)"
+    # for every file
+    ;;
+  *)
+    CXXFLAGS="-fPIC $CXXFLAGS";
+    ;;
+esac
+
 
 case `$PKG_CONFIG --version` in
   0.?|0.1[0-7])
commit 2723371b2e2f7684301ea1c5272ab49851f28c03
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sat Sep 6 21:19:46 2014 +0930

    make autogen.sh work with variables with spaces
    
    eg ./autogen.sh CXXFLAGS="-O0 -g3"

diff --git a/autogen.sh b/autogen.sh
index d3c0a6f..ae95c2f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -110,7 +110,7 @@ fi
 
 if test x$NOCONFIGURE = x; then
     printbold "Running $srcdir/configure $@ ..."
-    $srcdir/configure $@
+    $srcdir/configure "$@"
 else
     printbold "Skipping configure process."
 fi


More information about the poppler mailing list