~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Monty Taylor
  • Date: 2010-08-21 03:34:31 UTC
  • mto: (1725.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1726.
  • Revision ID: mordred@inaugust.com-20100821033431-e0czq298av2aqx25
Rearranged how we set -fvisibility, allowing us to turn it on on a
library-by-library basis even if we specify skip-visiblity as an argument to
PANDORA_CANONICAL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
 
205
205
  PANDORA_HAVE_GCC_ATOMICS
206
206
 
 
207
  save_CFLAGS="${CFLAGS}"
 
208
  CFLAGS="${CFLAGS} -Werror"
 
209
  PANDORA_CHECK_VISIBILITY
 
210
  CFLAGS="${save_CFLAGS}"
207
211
  m4_if(PCT_USE_VISIBILITY,[yes],[
208
 
    dnl We need to inject error into the cflags to test if visibility works or not
209
 
    save_CFLAGS="${CFLAGS}"
210
 
    CFLAGS="${CFLAGS} -Werror"
211
 
    PANDORA_VISIBILITY
212
 
    CFLAGS="${save_CFLAGS}"
 
212
    PANDORA_ENABLE_VISIBILITY
213
213
  ])
214
214
 
215
215
  PANDORA_HEADER_ASSERT