[bootlin/training-materials updates] master: Third party lab: remove the -lm trick (8136365b)

Michael Opdenacker michael.opdenacker at bootlin.com
Wed Aug 5 17:40:56 CEST 2020


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/8136365bd37607acbc776d9a4775b4f5042326c1

>---------------------------------------------------------------

commit 8136365bd37607acbc776d9a4775b4f5042326c1
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Aug 5 17:40:56 2020 +0200

    Third party lab: remove the -lm trick
    
    - No longer needed with the latest versions
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

8136365bd37607acbc776d9a4775b4f5042326c1
 labs/sysdev-thirdparty/sysdev-thirdparty.tex | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/labs/sysdev-thirdparty/sysdev-thirdparty.tex b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
index 137352fd..32484a90 100644
--- a/labs/sysdev-thirdparty/sysdev-thirdparty.tex
+++ b/labs/sysdev-thirdparty/sysdev-thirdparty.tex
@@ -902,30 +902,6 @@ host, not the target. It is coming from the autodetected value for
 Add the \code{--without-curl} option to the \code{configure} invocation,
 restart the compilation.
 
-The compilation may then fail with an error related to {\em libm}. While
-the code uses the function from this library, the generated Makefile
-doesn't give the right command line argument in order to link against
-the libm.
-
-If you look at the \code{configure} help, you can see
-\begin{verbatim}
-LIBS        libraries to pass to the linker, e.g. -l<library>
-\end{verbatim}
-
-And this is exactly what we are supposed to use to add new linker
-flags.
-
-Add this to the \code{configure} command line to get
-\begin{verbatim}
-LDFLAGS=-L$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib \
-CPPFLAGS=-I$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/include \
-PKG_CONFIG_LIBDIR=$HOME/__SESSION_NAME__-labs/thirdparty/staging/usr/lib/pkgconfig \
-PKG_CONFIG_SYSROOT_DIR=$HOME/__SESSION_NAME__-labs/thirdparty/staging \
-LIBS=-lm \
-CC=arm-linux-gcc \
-./configure --host=arm-linux --prefix=/usr --without-curl
-\end{verbatim}
-
 Finally, it builds!
 
 Now, install the vorbis-tools to the {\em staging} space using:




More information about the training-materials-updates mailing list