File: ld

package info (click to toggle)
ocamlbuild 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,832 kB
  • sloc: ml: 9,087; makefile: 521; sh: 187
file content (9 lines) | stat: -rwxr-xr-x 219 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# Suppress "bss-plt forced" warnings from ld
# see https://github.com/ocaml/ocamlbuild/issues/254
f() {
	/usr/bin/ld 2>&1 1>&3 "$@" \
	  | grep -v "bss-plt forced"
	return ${PIPESTATUS[0]}
}
f "$@" 3>&1 >&2