UnitTestFrameworkPkg: Add -pie to ASLCC_FLAGS for unit tests

For Linux/GCC host-based unit tests, -fno-pei is added
to CC_FLAGS and this causes builds of .aslc/.act files for
ACPI tables used in host-based unit tests to fail. Add
-fpie to ASLCC_FLAGS in UnitTestFrameworkPkgHost.dsc.inc
to override this CC_FLAGS setting and resolve the build issue.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Michael D Kinney
2025-06-18 17:59:36 -07:00
committed by mergify[bot]
parent b4e5860fd5
commit 272c1b2b5f

View File

@@ -32,6 +32,7 @@
[BuildOptions]
MSFT:*_*_*_CC_FLAGS = /MTd
GCC:*_*_*_CC_FLAGS = -fno-pie
GCC:*_*_*_ASLCC_FLAGS = -fpie
!if $(UNIT_TESTING_ADDRESS_SANITIZER_ENABLE)
#
# Enable Address Sanitizer for VS2019, VS2022, and GCC