samgh1230 / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

Make shared library fails on Ubuntu 13.10 #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.change config.mk to build shared library
 SHARED_LIBRARY = true#NO SPACE
2. call make

What is the expected output? What do you see instead?
Linker errors when building an app during the compilation, undefined reference 
to (pow, ...).
The problem is since the linker only adds the libraries needed by the objects 
in order (--as-needed flag is default).
The attached patch fixes the issue for me.

What version of the product are you using?
 Newest version revision 539:cefa56b479b6 from 
 Wed Feb 12 17:14:16 2014 +0100

Ubuntu 13.10

Original issue reported on code.google.com by JulianKu...@googlemail.com on 15 Feb 2014 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
This bug also affects the revision 551:57f322cdba1e and the stable distribution 
from the download page (3.1.1) on Debian Jessie.
I have made a different (simpler ?) patch (before seeing this post).

Please note that the attached patch also contains the patch to issue 142

Original comment by dbeniam...@gmail.com on 21 Mar 2014 at 12:52

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jan.trei...@gmail.com on 8 May 2014 at 12:33

GoogleCodeExporter commented 9 years ago

Original comment by jan.trei...@gmail.com on 8 May 2014 at 12:41

GoogleCodeExporter commented 9 years ago
This issue was closed by revision e734deac1733.

Original comment by Thomas.R...@googlemail.com on 9 May 2014 at 11:08