Blame polymake-fedora.patch

cc3a73a
--- ./bundled/group/apps/polytope/src/Makefile.inc.orig	2015-09-25 13:18:03.796858367 -0600
cc3a73a
+++ ./bundled/group/apps/polytope/src/Makefile.inc	2015-09-25 13:19:57.986788751 -0600
cc3a73a
@@ -1,10 +1,10 @@
4ad1335
 ifeq (${ImportedIntoExtension},)
cc3a73a
-  StaticLibs := sympol
cc3a73a
+  # StaticLibs := sympol
4ad1335
 
4ad1335
-  sympol_interface$O : ExtraCXXFLAGS += -I${ExtensionTop}/external/sympol
4ad1335
-  sympol_raycomputation_beneathbeyond$O : ExtraCXXFLAGS += -I${ExtensionTop}/external/sympol
4ad1335
+  sympol_interface$O : ExtraCXXFLAGS += -I/usr/include/sympol
4ad1335
+  sympol_raycomputation_beneathbeyond$O : ExtraCXXFLAGS += -I/usr/include/sympol
4ad1335
 
cc3a73a
-  LIBS += ${BuildDir}/staticlib/sympol/libsympol$A $(subst %A,${A},${CddLib} ${LrsLib})
4ad1335
+  LIBS += -lsympol -lcddgmp
Jerry James ba7c267
 endif
4ad1335
 
cc3a73a
 ifneq ($(filter 4.4%,${GCCversion}),)
cc3a73a
--- ./bundled/group/configure.pl.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73a
+++ ./bundled/group/configure.pl	2015-09-25 13:18:03.797858288 -0600
Jerry James 51c14ed
@@ -28,7 +28,7 @@ sub proceed {
4ad1335
    my ($options)=@_;
4ad1335
    my $boost_path;
4ad1335
    # everything can include permlib headers
4ad1335
-   $CXXflags='-I${ExtensionTop}/external/permlib/include';
4ad1335
+   $CXXflags='-I/usr/include/permlib';
4ad1335
 
4ad1335
    if (defined ($boost_path=$options->{boost})) {
4ad1335
       $boost_path .= '/include' if (-d "$boost_path/include/boost");
cc3a73a
--- ./bundled/group/staticlib/sympol/Makefile.inc.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73a
+++ ./bundled/group/staticlib/sympol/Makefile.inc	2015-09-25 13:18:03.808857414 -0600
cc3a73a
@@ -5,7 +5,7 @@ src := $(ExtensionTop)/external/sympol/s
4ad1335
 vpath %.cpp $(src)
4ad1335
 
cc3a73a
 
cc3a73a
-libsympol : ExtraCXXFLAGS := -I$(ExtensionTop)/external/permlib/include -I$(ExtensionTop)/external/sympol/sympol $(LrsCflags) -DGMP -DLRS_QUIET $(CddCflags) -DGMPRATIONAL 
cc3a73a
+libsympol : ExtraCXXFLAGS :=  -I/usr/include/permlib -I/usr/include/sympol $(LrsCflags) -DGMP -DLRS_QUIET $(CddCflags) -DGMPRATIONAL 
4ad1335
 
4ad1335
 # Local Variables:
4ad1335
 # mode: Makefile
cc3a73a
--- ./bundled/libnormaliz/apps/polytope/src/Makefile.inc.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73a
+++ ./bundled/libnormaliz/apps/polytope/src/Makefile.inc	2015-09-25 13:18:03.808857414 -0600
Jerry James 74d8a20
@@ -1,4 +1,5 @@
Jerry James 74d8a20
-  ExtraCXXFLAGS = -I$(ExtensionTop)/external/libnormaliz
Jerry James 74d8a20
+  ExtraCXXFLAGS = -I/usr/include/libnormaliz
Jerry James 74d8a20
+  LIBS += -lnormaliz
Jerry James 74d8a20
 
Jerry James 74d8a20
 # Local Variables:
Jerry James 74d8a20
 # mode: Makefile
cc3a73a
--- ./bundled/libnormaliz/apps/polytope/src/normaliz.cc.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73a
+++ ./bundled/libnormaliz/apps/polytope/src/normaliz.cc	2015-09-25 13:18:03.809857335 -0600
cc3a73a
@@ -36,7 +36,7 @@ namespace libnormaliz {
Jerry James 6ad2239
    }
Jerry James 74d8a20
 }
Jerry James 74d8a20
 
Jerry James 74d8a20
-#include "libnormaliz-all.cpp"
Jerry James 74d8a20
+#include <libnormaliz/cone.h>
Jerry James 74d8a20
 
Jerry James 6ad2239
 namespace libnormaliz {
Jerry James 6ad2239
    template<> inline long explicit_cast_to_long(const pm::Integer& a) {
cc3a73a
--- ./perl/polymake-config.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73a
+++ ./perl/polymake-config	2015-09-25 13:18:03.809857335 -0600
Jerry James 51c14ed
@@ -125,9 +125,6 @@ while (defined ($_=shift)) {
Jerry James 74d8a20
 
Jerry James 74d8a20
    } elsif ($_ eq "--ldflags") {
Jerry James 74d8a20
       my $ldflags=$conf{LDflags};
Jerry James 74d8a20
-      if ($ldflags !~ /(?:^|\s)-L$conf{InstallLib}(?:\s|$)/) {
Jerry James 74d8a20
-         $ldflags="-L$conf{InstallLib} $ldflags";
Jerry James 74d8a20
-      }
Jerry James 74d8a20
       my $add_rpath=1;
Jerry James 74d8a20
       open CF, ">$tmpfile.cc" or die "can't create temporary file $tmpfile.cc: $!\n";
Jerry James 74d8a20
       print CF "int main() { return 0; }\n";
Jerry James 51c14ed
@@ -145,8 +142,6 @@ while (defined ($_=shift)) {
Jerry James 74d8a20
       close CC;
Jerry James 74d8a20
       if ($^O eq "darwin") {
Jerry James 74d8a20
          $ldflags="$conf{ARCHFLAGS} $ldflags -flat_namespace";
Jerry James 74d8a20
-      } elsif ($add_rpath) {
Jerry James 74d8a20
-         $ldflags.=" -Wl,-rpath,$conf{InstallLib}";
Jerry James 74d8a20
       }
Jerry James 74d8a20
       $ldflags=~s/^\s+//; $ldflags=~s/\s+$//; $ldflags=~s/\s{2,}/ /g;
Jerry James 74d8a20
       if ($debug_asked=defined($debug)) {
cc3a73a
--- ./support/configure.pl.orig	2015-09-22 06:28:57.000000000 -0600
cc3a73a
+++ ./support/configure.pl	2015-09-25 13:18:03.810857256 -0600
Jerry James 51c14ed
@@ -371,7 +371,7 @@ if (defined $CC) {
4ad1335
 print "ok ($CXX is ", defined($GCCversion) ? "GCC $GCCversion" : defined($CLANGversion) ? "CLANG $CLANGversion" : "ICC $ICCversion", ")\n";
4ad1335
 
4ad1335
 $PERL     =$vars{PERL}     || $^X;
4ad1335
-$CXXOPT   =$vars{CXXOPT}   || "-O3";
4ad1335
+$CXXOPT   =$vars{CXXOPT}   || "-O2";
4ad1335
 $CXXDEBUG =$vars{CXXDEBUG} || "";
4ad1335
 $Cflags   =$vars{CFLAGS}   || "";
4ad1335
 $CXXflags =$vars{CXXFLAGS} || $Cflags;
cc3a73a
@@ -561,10 +561,6 @@ if (defined $GMP) {
Jerry James ba7c267
    $CXXflags .= " -I$GMP/include";
Jerry James ba7c267
    my $libdir=get_libdir($GMP, "gmp");
Jerry James ba7c267
    $LDflags .= " -L$libdir";
4ad1335
-   if (($^O ne "darwin" || $options{fink} eq ".none.") && exists $options{gmp}) {
Jerry James ba7c267
-      # non-standard location
Jerry James ba7c267
-      $LDflags .= " -Wl,-rpath,$libdir";
Jerry James ba7c267
-   }
Jerry James ba7c267
 }
Jerry James ba7c267
 
Jerry James ba7c267
 my $MPFR=$options{mpfr};
cc3a73a
@@ -573,10 +569,6 @@ if (defined($MPFR) && $MPFR ne $GMP) {
Jerry James ba7c267
    $CXXflags .= " -I$MPFR/include";
Jerry James ba7c267
    my $libdir=get_libdir($MPFR, "mpfr");
Jerry James ba7c267
    $LDflags .= " -L$libdir";
4ad1335
-   if ($^O ne "darwin" || $options{fink} eq ".none.") {
Jerry James ba7c267
-      # non-standard location
Jerry James ba7c267
-      $LDflags .= " -Wl,-rpath,$libdir";
Jerry James ba7c267
-   }
Jerry James ba7c267
 }
Jerry James ba7c267
 
4ad1335
 if ($check_prereq) {