Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
base
Commits
9592a38f
Commit
9592a38f
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Plain Diff
Merge branch 'mnt/rpath' into 'master'
MNT: rpath See merge request
!27
parents
140720d1
845c5617
No related branches found
No related tags found
1 merge request
!27
MNT: rpath
Pipeline
#11435
passed
3 years ago
Stage: test
Stage: fsl-ci-build
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
CHANGELOG.md
+7
-0
7 additions, 0 deletions
CHANGELOG.md
config/buildSettings.mk
+31
-4
31 additions, 4 deletions
config/buildSettings.mk
with
39 additions
and
5 deletions
.gitlab-ci.yml
+
1
−
1
View file @
9592a38f
include
:
include
:
-
file
:
.gitlab-ci.yml
-
file
:
.gitlab-ci.yml
project
:
fsl/fsl-ci-rules
project
:
fsl/
conda/
fsl-ci-rules
stages
:
stages
:
-
test
-
test
...
...
This diff is collapsed.
Click to expand it.
CHANGELOG.md
+
7
−
0
View file @
9592a38f
# FSL base project changelog
# FSL base project changelog
## 2111.0 (Thursday 11th November 2021)
-
The
`rpath`
is explicitly set on executables and shared libraries,
and the
`install_name`
set on shared libraries under macOS. This
is to support local development, and execution of commands from
their
`$FSLDIR/src/`
directory.
## 2109.1 (Wednesday 22nd September 2021)
## 2109.1 (Wednesday 22nd September 2021)
...
...
This diff is collapsed.
Click to expand it.
config/buildSettings.mk
+
31
−
4
View file @
9592a38f
...
@@ -77,6 +77,22 @@ ARCHNVCCLDFLAGS =
...
@@ -77,6 +77,22 @@ ARCHNVCCLDFLAGS =
# macOS.
# macOS.
#
#
#####################################################################
#####################################################################
# Drop -rpath flags from LDFLAGS if it is
# set in the environment - we explicitly
# add them below such that executables
# will be able to find libs in $(pwd) and
# in $FSLDIR/lib *in that order*. This is
# so that executables located in the
# project source dir can be executed in
# place with sensible behaviour (i.e. any
# shared libs located in the same dir will
# take precedence over libs of the same
# name in $FSLDIR/lib/).
COMMA
:=
,
_LDFLAGS
:=
$(
patsubst
-Wl
${
COMMA
}
-rpath
%,,
${
LDFLAGS
})
LDFLAGS
=
${
_LDFLAGS
}
ifeq
($(SYSTYPE), Darwin)
ifeq
($(SYSTYPE), Darwin)
# CC, CXX, CFLAGS, CXXFLAGS, and LDFLAGS
# CC, CXX, CFLAGS, CXXFLAGS, and LDFLAGS
...
@@ -85,8 +101,20 @@ ifeq ($(SYSTYPE), Darwin)
...
@@ -85,8 +101,20 @@ ifeq ($(SYSTYPE), Darwin)
CXX
?=
clang++
CXX
?=
clang++
CFLAGS
?=
-arch
x86_64
-Wall
-pedantic
CFLAGS
?=
-arch
x86_64
-Wall
-pedantic
CXXFLAGS
?=
-arch
x86_64
-Wall
-pedantic
CXXFLAGS
?=
-arch
x86_64
-Wall
-pedantic
LDFLAGS
?=
-Wl
,-search_paths_first
LDFLAGS
+=
-Wl
,-rpath,
"@executable_path/"
\
-Wl
,-rpath,
"
${
FSLDIR
}
/lib"
ARCHLIBS
+=
-llapack
-lblas
-lz
-lm
ARCHLIBS
+=
-llapack
-lblas
-lz
-lm
# On macOS, we need to change the install
# name of shared libs so that they can be
# looked up according to the rpath of
# executables that depend on them. Note
# that we give shared libs a suffix of
# .so (not .dylib) on both linux and
# macOS.
ifeq
($(patsubst %.so,,$@),)
LDFLAGS
+=
-Wl
,-install_name,@rpath/
$@
endif
endif
endif
#####################################################################
#####################################################################
...
@@ -105,9 +133,8 @@ ifeq ($(SYSTYPE), Linux)
...
@@ -105,9 +133,8 @@ ifeq ($(SYSTYPE), Linux)
-Wall
-pedantic
-Wno-long-long
-Wall
-pedantic
-Wno-long-long
CXXFLAGS
?=
-fexpensive-optimizations
\
CXXFLAGS
?=
-fexpensive-optimizations
\
-Wall
-pedantic
-Wno-long-long
-Wall
-pedantic
-Wno-long-long
# TODO add extra rpath here to
LDFLAGS
+=
-Wl
,-rpath,
'$$ORIGIN:
${
FSLDIR
}
/lib'
\
# support local development?
-Wl
,-rpath-link,
'$$ORIGIN:
${
FSLDIR
}
/lib'
LDFLAGS
?=
-Wl
,-rpath,
'$$ORIGIN/../lib'
ARCHLIBS
+=
-lopenblas
-lz
-lm
ARCHLIBS
+=
-lopenblas
-lz
-lm
endif
endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment