You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-chemistry/viewmol/files/2.4.1-remove-icc-check.patch

24 lines
1.2 KiB

diff -urN viewmol-2.4.1.orig/source/getmachine viewmol-2.4.1/source/getmachine
--- viewmol-2.4.1.orig/source/getmachine 2004-08-29 08:04:09.000000000 -0700
+++ viewmol-2.4.1/source/getmachine 2005-12-02 09:30:49.000000000 -0800
@@ -269,19 +269,11 @@
makedir
cat ../.config.$os > makefile
use_icc=`type icc 2> /dev/null`
- if [ "$use_icc" = "" ]
- then
findProcessor
echo 'COMPILER=gcc' >> makefile
echo "OPT=-O6 -mcpu=$processor -fomit-frame-pointer -ffast-math -malign-double" >> makefile
echo 'CFLAGS=-Wall -I/usr/X11R6/include -DLINUX -Wno-strict-aliasing' >> makefile
echo "LDFLAGS=$LINKFORSHARED" >> makefile
- else
- echo 'COMPILER=icc' >> makefile
- echo 'OPT=-O2 -ipo' >> makefile
- echo 'CFLAGS=-I/opt/intel/compiler50/ia32/include -I/usr/X11R6/include -DLINUX' >> makefile
- echo "LDFLAGS=$LINKFORSHARED -ipo" >> makefile
- fi
echo 'SCANDIR=' >> makefile
echo 'INCLUDE=$(TIFFINCLUDE) -I$(PNGINCLUDE) -I$(PYTHONINCLUDE)' >> makefile
echo 'LIBRARY=$(LIBTIFF) $(LIBPNG) -L$(LIBPYTHON)' >> makefile