File: fix_cflags.sh

package info (click to toggle)
swirc 3.5.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,044 kB
  • sloc: cpp: 18,690; ansic: 18,414; sh: 1,011; python: 254; makefile: 108; javascript: 20
file content (10 lines) | stat: -rw-r--r-- 229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
fix_cflags()
{
	if [ -x "$(which pkg-config)" ]; then
		local _hdr_search_path="$(pkg-config --cflags-only-I ncursesw)"

		if [ -n "$_hdr_search_path" ]; then
			echo "CPPFLAGS += ${_hdr_search_path}" >>$MAKE_DEF_FILE
		fi
	fi
}