From 18d1f6f7a507c9357ef2a2fd5b853230dfe859f7 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Tue, 14 Nov 2023 10:41:16 +0100 Subject: [PATCH] libelf: Set arch for g++ --- chapter08/libelf.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter08/libelf.xml b/chapter08/libelf.xml index 75a94250e..29a3b4e37 100644 --- a/chapter08/libelf.xml +++ b/chapter08/libelf.xml @@ -79,7 +79,7 @@ rm /usr/lib/libelf.a Prepare Libelf for compilation: -CC="gcc -m32" ./configure \ +CC="gcc -m32" CXX="g++ -m32" ./configure \ --host=i686-pc-linux-gnu \ --prefix=/usr \ --libdir=/usr/lib32 \ @@ -112,7 +112,7 @@ rm -rf DESTDIR Prepare Libelf for compilation: -CC="gcc -mx32" ./configure \ +CC="gcc -mx32" CXX="g++ -mx32" ./configure \ --host=x86_64-pc-linux-gnux32 \ --prefix=/usr \ --libdir=/usr/libx32 \