From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2012-September/018854.html | 165 ++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 zarb-ml/mageia-dev/2012-September/018854.html (limited to 'zarb-ml/mageia-dev/2012-September/018854.html') diff --git a/zarb-ml/mageia-dev/2012-September/018854.html b/zarb-ml/mageia-dev/2012-September/018854.html new file mode 100644 index 000000000..c505dbd80 --- /dev/null +++ b/zarb-ml/mageia-dev/2012-September/018854.html @@ -0,0 +1,165 @@ + + + + [Mageia-dev] need some help to build a linuxsampler.rpm + + + + + + + + + +

[Mageia-dev] need some help to build a linuxsampler.rpm

+ PhilippeDidier + philippedidier at laposte.net +
+ Sat Sep 22 21:20:46 CEST 2012 +

+
+ +
Thomas Backlund a écrit :
+> PhilippeDidier skrev 22.9.2012 16:26:
+>> Pierre-Malo Deniélou a écrit :
+>>> Le 22/09/12 01:45,PhilippeDidier nous adresse ces quelques mots :
+>>>>> You need to add -lpthread to the linker options...
+>>>>>
+>>>>> -- 
+>>>>> Thomas
+>>>>>
+>>>>>
+>>>>>
+>>>> Thanks Thomas ...
+>>>>
+>>>>
+>>>> I use a very simple spec file in which these parts were working for
+>>>> Mandriva :
+>>>>
+>>>>
+>>>> %prep
+>>>> %setup -q -n %name-%version
+>>>>
+>>>> %build
+>>>> %configure2_5x
+>>>> %make
+>>>>
+>>>> %install
+>>>> make DESTDIR=%buildroot  install
+>>>>
+>>>>
+>>>> I don't know where to add this option
+>>>>
+>>>> I thought it was done by %configure (I can see the option -pthread in
+>>>> the CXXFLAGS of the different makefiles)
+>>>>
+>>>> I tried to add
+>>>> CXXFLAGS="-lpthread" in the spec but it didn't change anything ...
+>>>
+>>> the linker flags use the LDFLAGS variable.
+>>>
+>> Thanks a lot Pierre-Malo !
+>>
+>> I only modified this
+>>
+>> %build
+>> %configure2_5x
+>> %make LDFLAGS="-lpthread"
+>>
+> 
+> Not good. you are overriding default LDFLAGS...
+> The proper fix is to add the flag in the Makefile that misses the needed
+> linking...
+> 
+> 
+>>
+>> And it works now !!!!!!
+>>
+>> But I don't understand why I have to add this for Mageia2 when it is not
+>> needed for Mandriva ...
+>> Is there something badly configured on my system ?
+>> Is it a package problem in glibc-2.14.1-8.mga2 or in glibc-devel ?
+>>
+>> Does it reveal a Mageia's bug ?
+>>
+> 
+> 
+> Nope. It's about under/overlinking, so the package you try to build,
+> does not properly specify what it needs to be linked against.
+> 
+> -- 
+> 
+> Thomas
+> 
+> 
+> 
+Thanks to both of you : I understand what happens
+and what to modify ...
+
+indeed the configured Makefile contains
+LDFLAGS  option --as-needed htat worked for Mandriva !!!
+
+I need now to write a patch for the makefiles...
+to fix it in a better way than overriding LDFLAGS
+
+May we now suppress the --as-needed option for LDFLAGS in every makefile ?
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1