From 572647504a3d7f62405e19ac44916bbae9d1bb82 Mon Sep 17 00:00:00 2001
From: Jan Altenberg <jan@linutronix.de>
Date: Fri, 28 Jan 2011 12:38:50 +0100
Subject: Fixed shared library example.

---
 application-devel/embedded-devel/pres_embedded-devel_de.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'application-devel/embedded-devel/pres_embedded-devel_de.tex')

diff --git a/application-devel/embedded-devel/pres_embedded-devel_de.tex b/application-devel/embedded-devel/pres_embedded-devel_de.tex
index ef31830..0623724 100644
--- a/application-devel/embedded-devel/pres_embedded-devel_de.tex
+++ b/application-devel/embedded-devel/pres_embedded-devel_de.tex
@@ -306,7 +306,7 @@ $ gcc -o hello hello.o libhello.a
 \frametitle{Dynamische Bibliotheken}
 \begin{lstlisting}
 # Erstellen dynamischer Bibliotheken
-$ gcc -fPIC file1.c file2.c
+$ gcc -c -fPIC file1.c file2.c
 $ gcc -shared -o libhello.so file1.o file2.o
 # Gegen die Bibliothek linken
 $ gcc -o hello hello.c libhello.so
@@ -331,7 +331,7 @@ Adresse lauffähig ist.
 \frametitle{SONAME}
 \begin{lstlisting}
 # Erstellen dynamischer Bibliotheken
-$ gcc -fPIC file1.c file2.c
+$ gcc -c -fPIC file1.c file2.c
 $ gcc -shared -Wl,-soname,libsayhello.so \
                -o libhello.so file1.o file2.o
 \end{lstlisting}
-- 
cgit v1.2.3

