Ticket #12110: singular-add-shared-switch.patch

File singular-add-shared-switch.patch, 1.3 KB (added by Snark, 11 years ago)

Patch to add -shared as a switch by default on unknown platforms

  • patches/Singular.Makefile.in.shared.patch

    diff -urN singular-3-1-3-3.p2/patches/Singular.Makefile.in.shared.patch singular-3-1-3-3.p3/patches/Singular.Makefile.in.shared.patch
    old new  
     1--- src/Singular/Makefile.in    2011-09-30 12:10:15.000000000 +0200
     2+++ patches/Singular.Makefile.in        2012-01-03 09:15:40.000000000 +0100
     3@@ -136,7 +136,7 @@
     4 
     5 SO_SUFFIX = so
     6 
     7-#LIBSINGULAR_FLAGS = -export-dynamic
     8+LIBSINGULAR_FLAGS = -shared
     9 LIBSINGULAR_LD = $(CXX)
     10 
     11 # correct suffix for dynamic linking
  • singular-3-1-3-3.

    diff -urN singular-3-1-3-3.p2/spkg-install singular-3-1-3-3.p3/spkg-install
    old new  
    9999{
    100100    pushd $SRC
    101101
    102     patches="assert.h.diff sing_win.cc.diff Minor.h.patch os_x_ppc.patch Singular.configure.patch make_parallel.patch"
     102    patches="assert.h.diff sing_win.cc.diff Minor.h.patch os_x_ppc.patch Singular.configure.patch make_parallel.patch Singular.Makefile.in.shared.patch"
    103103
    104104    if [ "$UNAME" = "CYGWIN" ]; then
    105105        patches="$patches IntegerProgramming-Makefile.in.diff"