Problem 1490 - A weird symlink "Darwin-clang -> .." ends up in ${prefix}/lib/Geant4-9.6.2/
Summary: A weird symlink "Darwin-clang -> .." ends up in ${prefix}/lib/Geant4-9.6.2/
Status: CLOSED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 9.6
Hardware: All Mac OS X
: P5 trivial
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2013-07-10 18:35 CEST by Mojca Miklavec
Modified: 2013-07-10 19:27 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Mojca Miklavec 2013-07-10 18:35:57 CEST
During CMake-based installation a weird symlink ends up in directory next to other *.cmake files. Here's the list of files:

    Darwin-clang -> ..
    Geant4Config.cmake
    Geant4ConfigVersion.cmake
    Geant4LibraryDepends-release.cmake
    Geant4LibraryDepends.cmake
    UseGeant4.cmake
    Modules/

What exactly is the purpose of that symlink?
Comment 1 Ben Morgan 2013-07-10 18:53:11 CEST
To support applications using the Geant4 Makefile system - that expects libraries to be installed under a directory named "PLATFORM-COMPILER". So it's there for backwards compatibility.
Comment 2 Mojca Miklavec 2013-07-10 19:27:05 CEST
So the libraries are searched in
    $prefix/lib/Geant4-9.6.2/Darwin-clang
? OK, I did some digging and found $G4LIB/$G4SYSTEM which is exactly the variable above. It's a bit weird, but I understand it. Thank you for explanation and I'm sorry misreport.