summaryrefslogtreecommitdiff
path: root/src/template/unixware
blob: 499eb9c3497da265654a937af97bd5bfd5cba262 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if test "$GCC" != yes; then
  # The -Kno_host is for a bug in the compiler.  See -hackers
  # discussion on 7-8/Aug/2003.
  cat >conftest.c <<__EOF__
extern char *strcpy(char *, const char *);

static void f(char *p, int n){
        strcpy(p+n,"");
}
void g(void){
        f(0, 0);
}
__EOF__

  if $CC -c -O -Kinline conftest.c >conftest.err 2>&1; then
    CFLAGS="-O -Kinline"
  else
    CFLAGS="-O -Kinline,no_host"
  fi
  rm -f conftest.*

  PTHREAD_CFLAGS="-Kpthread"
fi