1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-19 16:24:58 +00:00

Stip crosscompiled binaries, so they are smaller

This commit is contained in:
Carles Fernandez 2018-09-16 23:47:06 +02:00
parent 52081c81cd
commit ab8936c6a2
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -109,7 +109,7 @@ crosscompile:
- sh ./oecore-x86_64-armv7ahf-neon-toolchain-nodistro.0.sh -y - sh ./oecore-x86_64-armv7ahf-neon-toolchain-nodistro.0.sh -y
- . /usr/local/oecore-x86_64/environment-setup-armv7ahf-neon-oe-linux-gnueabi - . /usr/local/oecore-x86_64/environment-setup-armv7ahf-neon-oe-linux-gnueabi
- cd build - cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/oe-sdk_cross.cmake -DENABLE_OSMOSDR=ON -DENABLE_UNIT_TESTING_EXTRA=ON -DENABLE_SYSTEM_TESTING_EXTRA=ON -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_FMCOMMS2=ON -DENABLE_AD9361=ON -DENABLE_RAW_UDP=ON -DENABLE_INSTALL_TESTS=ON .. - cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/oe-sdk_cross.cmake -DENABLE_OSMOSDR=ON -DENABLE_UNIT_TESTING_EXTRA=ON -DENABLE_SYSTEM_TESTING_EXTRA=ON -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_FMCOMMS2=ON -DENABLE_AD9361=ON -DENABLE_RAW_UDP=ON -DENABLE_INSTALL_TESTS=ON -DCMAKE_C_FLAGS_RELEASE="-s" -DCMAKE_CXX_FLAGS_RELEASE="-s" ..
- make -j - make -j
- mkdir local_install - mkdir local_install
- make install DESTDIR=./local_install - make install DESTDIR=./local_install