Changeset 366 in flair-src


Ignore:
Timestamp:
Oct 7, 2020, 11:18:16 AM (14 months ago)
Author:
Sanahuja Guillaume
Message:

change simu apps compilation to avoid problem with mixing host and toolchain libs
(log2@glibc_2.29 error when compiling on ubuntu 20.05 or mint 20)
now compile with host g++ and libs (except filelib, irrlicht, quat, udt and vrpn) for simu apps using the macro: FLAIR_DEMO_HOST_CXX

add -fPIE flag for libs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake-modules/GlobalCmakeFlair.cmake

    r365 r366  
    5959    if (GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
    6060            if (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7)
    61                     ADD_DEFINITIONS("-std=c++11")
     61                    ADD_DEFINITIONS("-std=c++11 -fPIE")
    6262            else()
    63                     ADD_DEFINITIONS("-std=c++0x")
     63                    ADD_DEFINITIONS("-std=c++0x -fPIE")
    6464            endif()
    6565    else()
Note: See TracChangeset for help on using the changeset viewer.