File: libgcc_path.sh

package info (click to toggle)
pgplot5 5.2.2-19
  • links: PTS
  • area: non-free
  • in suites: jessie-kfreebsd, wheezy
  • size: 7,060 kB
  • sloc: fortran: 39,792; ansic: 22,549; objc: 1,534; sh: 1,305; makefile: 386; perl: 234; pascal: 233; tcl: 190; awk: 51; csh: 25
file content (12 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Create a dummy C file.

echo 'int main() {return 0;}' > dummy.c

# Compile and link the dummy file with verbose mode turned on and
# capture -L* library paths.

gcc -v -o dummy dummy.c 2>&1 | tr ' ' '\012' | egrep '^-L'

\rm -f dummy dummy.o dummy.c