configure: detect PIE and enable PIC
authorJames Zern <jzern@google.com>
Mon, 6 Nov 2023 18:21:56 +0000 (10:21 -0800)
committerJames Zern <jzern@google.com>
Mon, 6 Nov 2023 23:17:19 +0000 (15:17 -0800)
commit5b8d24f678560edb545beeffee7668761ad5fa7e
tree7d7c07ace423da4cb89307997be4f9c418402dc1
parentf08d238867a24b8eced67ff4cf54871e2bc9e47e
configure: detect PIE and enable PIC

Fixes the creation of DT_TEXTREL entries in binaries built with PIE
enabled:
  /usr/bin/ld: warning: creating DT_TEXTREL in a PIE

This matches the changes made in libaom:
1df26009da aom_configure: only override CONFIG_PIC if not set on cmd line
7235e65746 aom_configure.cmake: detect PIE and set CONFIG_PIC

Change-Id: I0a43e964af2d8eb8c5e7811ce14ad39285eec3a8
build/make/configure.sh