Re: [AD] CMake on Mac OS X

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2008-09-10, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> Seems to be a ; crept in somewhere, the command it's trying is:
> /usr/bin/gcc   ;-fno-common
> -I/Users/peterhull/Projects/allegro/4.9/include
> -I/Users/peterhull/Projects/allegro/4.9/addons/iio
> -DALLEGRO_STATICLINK -DALLEGRO_LIB_BUILD -W -Wall -Wno-unused -O2
> -funroll-loops -ffast-math -fomit-frame-p
> ointer -DALLEGRO_SRC -o CMakeFiles/alleg_static.dir/src/allegro.c.o
> -c /Users/peterhull/Projects/allegro/4.9/src/allegro.c
> Any ideas?

Try:

    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-common")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common")

At the least, this definitely should work:

    set(CMAKE_C_FLAGS "-fno-common")
    set(CMAKE_CXX_FLAGS "-fno-common")

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/