File: collect-ghc-options.sh

package info (click to toggle)
github-backup 1.20200721-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 560 kB
  • sloc: haskell: 3,730; makefile: 27; sh: 9
file content (12 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# Generate --ghc-options to pass LDFLAGS, CFLAGS, and CPPFLAGS through ghc
# and on to ld, cc, and cpp.
for w in $LDFLAGS; do
	printf -- "-optl%s\n" "$w"
done
for w in $CFLAGS; do
	printf -- "-optc%s\n" "$w"
done
for w in $CPPFLAGS; do
	printf -- "-optc-Wp,%s\n" "$w"
done