[gexiv2] build: Remove manual PIC handling



commit ad972546f80d8d5ee95e0696e6e158ea13e931a1
Author: Jens Georg <mail jensge org>
Date:   Sat Mar 11 12:27:08 2017 +0100

    build: Remove manual PIC handling
    
    Is done by libtool, no need for doing it ourselves
    
    Signed-off-by: Jens Georg <mail jensge org>

 Makefile.am  |   13 +------------
 configure.ac |    8 --------
 2 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index fb43680..d04eca6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -98,18 +98,7 @@ if PLATFORM_WIN32
 no_undefined = -no-undefined
 endif
 
-# REQUIRED_CFLAGS absolutely get appended to CFLAGS, whatever the
-# the value of CFLAGS in the environment.
-REQUIRED_CXXFLAGS=
-
-# Because -fPIC can interfere with compilation on 32-bit platforms but
-# is absolutely necessary for AMD64, we check what the target machine's
-# word size is, and set our required flags based upon that.
-if WORD_64
-REQUIRED_CXXFLAGS += -fPIC -DPIC
-endif
-
-AM_CXXFLAGS = $(REQUIRED_CXXFLAGS) -I$(top_builddir)/gexiv2 $(WARN_CXXFLAGS)
+AM_CXXFLAGS = -I$(top_builddir)/gexiv2 $(WARN_CXXFLAGS)
 
 $(GEXIV2_sources): gexiv2/gexiv2-version.h
 
diff --git a/configure.ac b/configure.ac
index e4bce45..a09ff01 100644
--- a/configure.ac
+++ b/configure.ac
@@ -191,14 +191,6 @@ AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "xyes")
 AC_MSG_CHECKING([enable tests])
 AC_MSG_RESULT([$enable_tests])
 
-###################
-# Check Word Size #
-###################
-
-AC_CHECK_SIZEOF([int *])
-AC_SUBST(SIZEOF_INT_P)
-AM_CONDITIONAL(WORD_64, test "x$SIZEOF_INT_P" = "x8" )
-
 ###########################
 # Check target architecture
 ###########################


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]