diff --git a/lldb/test/API/commands/target/basic/Makefile b/lldb/test/API/commands/target/basic/Makefile index b31e594019f6f..e66971834b689 100644 --- a/lldb/test/API/commands/target/basic/Makefile +++ b/lldb/test/API/commands/target/basic/Makefile @@ -3,4 +3,8 @@ # C_SOURCES := b.c # EXE := b.out +ifndef PIE + LDFLAGS := -no-pie +endif + include Makefile.rules diff --git a/lldb/test/API/lang/c/global_variables/Makefile b/lldb/test/API/lang/c/global_variables/Makefile index 7b94b6556f254..00c2557033d81 100644 --- a/lldb/test/API/lang/c/global_variables/Makefile +++ b/lldb/test/API/lang/c/global_variables/Makefile @@ -2,5 +2,8 @@ C_SOURCES := main.c DYLIB_NAME := a DYLIB_C_SOURCES := a.c +ifndef PIE + LDFLAGS := -no-pie +endif include Makefile.rules diff --git a/lldb/test/API/lang/cpp/char8_t/Makefile b/lldb/test/API/lang/cpp/char8_t/Makefile index e7c9938b5a85e..28f982a0078d8 100644 --- a/lldb/test/API/lang/cpp/char8_t/Makefile +++ b/lldb/test/API/lang/cpp/char8_t/Makefile @@ -1,4 +1,7 @@ CXX_SOURCES := main.cpp CXXFLAGS_EXTRAS := -std=c++2a -fchar8_t +ifndef PIE + LDFLAGS := -no-pie +endif include Makefile.rules