#688: Linux symbol export
View
(Anonymous)
issuedata
Classification:
Bug+Solution
Project:
cmgui
OS:
Linux
Version:
Categories:
compilation
Importance:
Low
Assigned to: blackett
Created by: stevens
Created at: 2008-05-12
progress
Deadline:
2008-07-11 11:53
Percent done:
0
contact
Name:
Shane Blackett
Description:
The cmgui.Makefile has two different methods for controlling exported symbols using cmgui.exports. One is using a version script, this is the preferred method, but only started working in ld in version 2.12. The second is by creating a shared_object library that requires the symbols you want, linking against that library and then setting the soname of the executable to be the same as the symbol requiring library so that the library dependency is resolved at runtime without requiring an actual library. The cmgui.Makefile has a regular expression which tests if the ld version from "ld -v" is recent enough, however the form of that string has had some adjustments and the use of \d and \s was not universally available, so I have tried to tidy this up.
Transcript
#2:
2008-05-12 11:59 (blackett)
#1:
2008-05-12 11:58 (blackett)
status: "pending" ->
"accepted"
assignees: "[]" ->
"['blackett']"
categories: "()" ->
"['compilation', '']"
OS: "Linux" ->
"['Linux', '']"
version: "Development" ->
"['']"
importance: "medium" ->
"low"
title: "" ->
"Linux symbol export"
classification: "Feature" ->
"Bug+Solution"
description: "" ->
"The cmgui.Makefile has two different methods for controlling exported symbols using cmgui.exports.
One is using a version script, this is the preferred method, but only started working in ld in version 2.12.
The second is by creating a shared_object library that requires the symbols you want, linking against that
library and then setting the soname of the executable to be the same as the symbol requiring library so that
the library dependency is resolved at runtime without requiring an actual library.
The cmgui.Makefile has a regular expression which tests if the ld version from "ld -v" is recent enough,
however the form of that string has had some adjustments and the use of \d and \s was not universally available,
so I have tried to tidy this up.
"
PloneCollectorNG (C) 2003-2004 by ZOPYX - Software Development and Consulting Andreas Jung