From e21ae15b8b5d190808eebab0aaa725175bb71df1 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Thu, 21 Dec 2023 22:38:04 +0200 Subject: [PATCH] rebuild with -fPIC (fbthrift) (#4513) * rebuild with -fPIC * fix path in FBThriftTargets.cmake * remove sed command --- projects/facebook.com/fbthrift/package.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/facebook.com/fbthrift/package.yml b/projects/facebook.com/fbthrift/package.yml index e652b940..3b5b50b2 100644 --- a/projects/facebook.com/fbthrift/package.yml +++ b/projects/facebook.com/fbthrift/package.yml @@ -36,6 +36,11 @@ build: - -DCMAKE_VERBOSE_MAKEFILE=ON - -Wno-dev - -DBUILD_TESTING=OFF + linux: + CMAKE_ARGS: + - -DCMAKE_C_FLAGS=-fPIC + - -DCMAKE_CXX_FLAGS=-fPIC + - -DCMAKE_EXE_LINKER_FLAGS=-pie provides: - bin/thrift1 test: