403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/math/csdp/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/math/csdp/files/patch-Makefile
- replacement of -ansi with -std=c99 is to work around https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260136

--- Makefile.orig	2017-07-25 18:44:57 UTC
+++ Makefile
@@ -11,11 +11,11 @@
 #
 # CFLAGS settings for 64 bit Linux/unix systems.
 #
-export CFLAGS=-m64 -march=native -mtune=native -Ofast -fopenmp -ansi -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
+CFLAGS=$(FREEBSD_CFLAGS) -fopenmp -std=c99 -Wall -DBIT64 -DUSEOPENMP -DSETNUMTHREADS -DUSESIGTERM -DUSEGETTIME -I../include
 #
 # LIBS settings for 64 bit Linux/unix systems.
 #
-export LIBS=-static -L../lib -lsdp -llapack -lblas -lm
+LIBS=$(FREEBSD_LIBS) -L../lib -lsdp -llapack -lblas -lm
 #
 #
 # On most systems, this should handle everything.
@@ -38,11 +38,11 @@ unitTest:
 #
 
 install:
-	cp -f solver/csdp /usr/local/bin
-	cp -f theta/theta /usr/local/bin
-	cp -f theta/graphtoprob /usr/local/bin
-	cp -f theta/complement /usr/local/bin
-	cp -f theta/rand_graph /usr/local/bin
+	cp -f solver/csdp $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/theta $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/graphtoprob $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/complement $(DESTDIR)$(PREFIX)/bin
+	cp -f theta/rand_graph $(DESTDIR)$(PREFIX)/bin
 
 #
 # Clean out all of the directories.

Youez - 2016 - github.com/yon3zu
LinuXploit