aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Trepl (Moody) <thomas@linuxfromscratch.org>2021-08-08 15:56:20 +0200
committerThomas Trepl (Moody) <thomas@linuxfromscratch.org>2021-08-08 15:58:25 +0200
commit835c1c8ac4404f525ab6bfe5eebc20729ee094d3 (patch)
tree8996f502a1e4639d1e5f7ff5eb55b10a5de00a4b
parentb8d5542c282d454d6f69cc6bce5a31afd8f27b5f (diff)
Add CC= to install commands at m32/mx32
-rw-r--r--chapter08/libcap.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter08/libcap.xml b/chapter08/libcap.xml
index accf91fd9..15411e94e 100644
--- a/chapter08/libcap.xml
+++ b/chapter08/libcap.xml
@@ -96,7 +96,7 @@
<para>Install the package:</para>
-<screen><userinput remap="install">make lib=lib32 prefix=$PWD/DESTDIR/usr -C libcap install
+<screen><userinput remap="install">make CC="gcc -m32 -march=i686" lib=lib32 prefix=$PWD/DESTDIR/usr -C libcap install
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
sed -e "s|^libdir=.*|libdir=/usr/lib32|" -i /usr/lib32/pkgconfig/lib{cap,psx}.pc
chmod -v 755 /usr/lib32/libcap.so.&libcap-version;
@@ -121,7 +121,7 @@ rm -rf DESTDIR</userinput></screen>
<para>Install the package:</para>
-<screen><userinput remap="install">make lib=libx32 prefix=$PWD/DESTDIR/usr -C libcap install
+<screen><userinput remap="install">make CC="gcc -mx32 -march=x86-64" lib=libx32 prefix=$PWD/DESTDIR/usr -C libcap install
cp -Rv DESTDIR/usr/libx32/* /usr/libx32
sed -e "s|^libdir=.*|libdir=/usr/libx32|" -i /usr/libx32/pkgconfig/lib{cap,psx}.pc
chmod -v 755 /usr/libx32/libcap.so.&libcap-version;