changeset 3696:73dc0213c8ac

qt.mk: edit configure script for systems with /usr/X11R6/lib64 directory
author John W. Eaton <jwe@octave.org>
date Wed, 27 Aug 2014 10:34:10 -0400
parents e4ce23a86225
children 1c0fcc3ce0b3
files src/qt.mk
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/qt.mk	Tue Aug 26 14:55:29 2014 -0400
+++ b/src/qt.mk	Wed Aug 27 10:34:10 2014 -0400
@@ -120,6 +120,11 @@
 define $(PKG)_BUILD
     ## syncqt needs QTDIR set to find the sources
     cd '$(1)' && QTDIR='$(1)' ./bin/syncqt
+    ## FIXME: LDFLAGS was not correct for SuSE 10.4 systems.  Is there
+    ## a better way to handle this problem?
+    if [ -d '/usr/X11R6/lib64' ]; then \
+      sed -i 's/PLATFORM=linux-g++/PLATFORM=linux-g++-64/' '$(1)/configure' \
+    fi
     cd '$(1)' && QTDIR='$(1)' \
         $($(PKG)_CONFIGURE_ENV) \
         ./$($(PKG)_CONFIGURE_CMD) \