Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2008, 9:09:18 PM (16 years ago)
Author:
rgrieder
Message:

Reenabled -fPIC flag, but only for non MINGW boxes because MinGW will otherwise issue a waring for every source file.

Location:
code/branches/buildsystem2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem2/CMakeLists.txt

    r2521 r2526  
    3232ENDIF(NOT CMAKE_BUILD_TYPE)
    3333#SET(CMAKE_C_FLAGS   "$ENV{CFLAGS}   -Wall -Wextra -Wno-unused-parameter")
    34 SET(CMAKE_C_FLAGS   "$ENV{CFLAGS}   -Wall")
     34SET(CMAKE_C_FLAGS   "$ENV{CFLAGS}   -Wall ${ORXONOX_FPIC_FLAG}")
    3535#SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall -Wextra -Wno-unused-parameter")
    36 SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall")
     36SET(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -Wall ${ORXONOX_FPIC_FLAG}")
    3737SET(CMAKE_C_FLAGS_DEBUG            "-g -ggdb")
    3838SET(CMAKE_CXX_FLAGS_DEBUG          "-g -ggdb")
  • code/branches/buildsystem2/cmake/CheckOrxonoxWinDeps.cmake

    r2510 r2526  
    5151    SET(ENV{DXSDK_DIR} "${MINGW_LIBRARY_DIR}/DXSDK")
    5252  ENDIF (NOT ENV{DXSDK_DIR})
     53
     54  # MINGW doesn't like the -fPIC flag very much
     55  SET(ORXONOX_FPIC_FLAG "")
     56ELSE (MINGW)
     57  SET(ORXONOX_FPIC_FLAG "-fPIC")
    5358ENDIF (MINGW)
    5459
Note: See TracChangeset for help on using the changeset viewer.