From 7e035dccd4bd07e58f7639d1ed4ad6f2d563efda Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Tue, 18 Jun 2024 19:59:19 -0700 Subject: Remove ccgp This `cc -Wall $(pkg-config --cflags --libs gsl --libs plplot) -o filename filename.c` works well and I also take notes about old way. ccgp is not very useful now because I'm more familiar with build process and I don't want to link unnecessary libraries when require less libs. --- sh/ccgp | 7 ------- 1 file changed, 7 deletions(-) delete mode 100755 sh/ccgp (limited to 'sh/ccgp') diff --git a/sh/ccgp b/sh/ccgp deleted file mode 100755 index 2f5754f..0000000 --- a/sh/ccgp +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# steal codes from https://github.com/LukeSmithxyz/voidrice/blob/master/.local/bin/compiler - -base="${1%.*}" -# -lm link math library? needed for sqrt(). not sure -# https://stackoverflow.com/questions/44175151/what-is-the-meaning-of-lm-in-gcc -cc -Wall -lgsl -lgslcblas -lm -lplplot -o "$base" "$1" && ./"$base" -- cgit v1.2.3-70-g09d2