Changeset 10386:9cb46d730c8c in orange for source/makefile.defs


Ignore:
Timestamp:
02/27/12 20:12:05 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Added -fno-strict-aliasing compiler flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/makefile.defs

    r8984 r10386  
    3535    export MACOSX_DEPLOYMENT_TARGET = 10.4 
    3636  endif 
    37   COMPILEOPTIONS = -fPIC -fpermissive -fno-common -w -DDARWIN -D$(MODULENAME)_EXPORTS -O3 -I$(NUMPY_INCLUDE) $(CXXFLAGS) 
    38   STATICCOMPILEOPTIONS = -fpermissive -fno-common -w -DDARWIN -D$(MODULENAME)_EXPORTS -O3 -I$(NUMPY_INCLUDE) $(CXXFLAGS) 
     37  COMPILEOPTIONS = -fPIC -fpermissive -fno-strict-aliasing -fno-common -w -DDARWIN -D$(MODULENAME)_EXPORTS -O3 -I$(NUMPY_INCLUDE) $(CXXFLAGS) 
     38  STATICCOMPILEOPTIONS = -fpermissive -fno-strict-aliasing -fno-common -w -DDARWIN -D$(MODULENAME)_EXPORTS -O3 -I$(NUMPY_INCLUDE) $(CXXFLAGS) 
    3939  LINKOPTIONS = -dynamiclib -headerpad_max_install_names -undefined dynamic_lookup -lstdc++ -L$(OLD) -lorange_include $(LDFLAGS) 
    4040  LINKER = g++ 
    4141else 
    4242ifeq ($(OS), FreeBSD) 
    43   COMPILEOPTIONS = -fPIC -fpermissive -w -DFREEBSD -O3 $(CXXFLAGS) 
    44   STATICCOMPILEOPTIONS = -fpermissive -w -DFREEBSD -O3 $(CXXFLAGS) 
     43  COMPILEOPTIONS = -fPIC -fpermissive -fno-strict-aliasing -w -DFREEBSD -O3 $(CXXFLAGS) 
     44  STATICCOMPILEOPTIONS = -fpermissive -fno-strict-aliasing -w -DFREEBSD -O3 $(CXXFLAGS) 
    4545  LINKOPTIONS = -shared -lstdc++ -L$(OLD) -lorange_include $(LDFLAGS) 
    4646  LINKOPTIONS += `gsl-config --libs` 
     
    4848else 
    4949  # for icc, also add -D"__sync_fetch_and_add(ptr,addend)=_InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(ptr)), addend)" 
    50   COMPILEOPTIONS = -fPIC -fpermissive -w -DLINUX -D$(MODULENAME)_EXPORTS -O3 $(CXXFLAGS) 
    51   STATICCOMPILEOPTIONS = -fpermissive -w -DLINUX -D$(MODULENAME)_EXPORTS -O3 $(CXXFLAGS) # To make Debian package managers happy 
     50  COMPILEOPTIONS = -fPIC -fpermissive -fno-strict-aliasing -w -DLINUX -D$(MODULENAME)_EXPORTS -O3 $(CXXFLAGS) 
     51  STATICCOMPILEOPTIONS = -fpermissive -fno-strict-aliasing -w -DLINUX -D$(MODULENAME)_EXPORTS -O3 $(CXXFLAGS) # To make Debian package managers happy 
    5252  LINKOPTIONS = -Wl,-R'$$ORIGIN' -shared -lstdc++ -L$(OLD) -lorange_include $(LDFLAGS) 
    5353endif 
Note: See TracChangeset for help on using the changeset viewer.