~ubuntu-branches/ubuntu/quantal/starpu-contrib/quantal

« back to all changes in this revision

Viewing changes to m4/gcc.m4

  • Committer: Package Import Robot
  • Author(s): Samuel Thibault
  • Date: 2012-04-12 15:04:15 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120412150415-gzp107thb5wknugm
Tags: 1.0.1-1
* New upstream release.
* Explicitly use gcc-4.6 to fix plugin build (Closes: Bug#667381).
* Use gcc-4.5 for starpu, as nvcc does not actually support all 4.6
  features, notably not __float128.
* patches/relax-gcc-plugin: Relax gcc-4.6 dependency for plugins to upstream
  release version (Closes: #670422)
* watch: Fix URL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  GCC_PLUGIN_INCLUDE_DIR="`"$CC" -print-file-name=plugin`/include"
19
19
 
20
20
  save_CPPFLAGS="$CPPFLAGS"
 
21
  save_LDFLAGS="$LDFLAGS"
 
22
 
21
23
  CPPFLAGS="-I$GCC_PLUGIN_INCLUDE_DIR"
22
24
 
 
25
  case "$host_os" in
 
26
    darwin*)
 
27
      # Darwin's linker errors out when encountering undefined
 
28
      # symbols, by default.  Tell it to ignore them.
 
29
      LDFLAGS="-Wl,-undefined -Wl,dynamic_lookup";;
 
30
  esac
 
31
 
23
32
  $1
24
33
 
25
34
  CPPFLAGS="$save_CPPFLAGS"
 
35
  LDFLAGS="$save_LDFLAGS"
26
36
])
27
37
 
28
38
dnl Set $ac_cv_starpu_gcc_for_plugin to the compiler to use to compile