Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Timo Koch
dune-common
Commits
f9c79378
Commit
f9c79378
authored
9 years ago
by
Jö Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
[release][fs1650][autotools] Add -Wl,-no-as-needed to the linker flags if we
are on Ubuntu.
parent
797fbfa1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
m4/dune_stdthread.m4
+12
-1
12 additions, 1 deletion
m4/dune_stdthread.m4
with
12 additions
and
1 deletion
m4/dune_stdthread.m4
+
12
−
1
View file @
f9c79378
...
...
@@ -4,12 +4,13 @@
AC_DEFUN([DUNE_STDTHREAD],[
AC_REQUIRE([ACX_PTHREAD])
AC_REQUIRE([DUNE_NO_AS_NEEDED])
AC_CACHE_CHECK([libraries needed for std::thread],
[dune_cv_stdthread_libs],
[dune_cv_stdthread_libs=$PTHREAD_LIBS])
AC_CACHE_CHECK([linker flags needed for std::thread],
[dune_cv_stdthread_ldflags],
[dune_cv_stdthread_ldflags=$PTHREAD_CFLAGS])
[dune_cv_stdthread_ldflags=
"$NO_AS_NEEDED
$PTHREAD_CFLAGS
"
])
AC_CACHE_CHECK([compiler flags needed for std::thread],
[dune_cv_stdthread_cppflags],
[dune_cv_stdthread_cppflags=$PTHREAD_CFLAGS])
...
...
@@ -58,3 +59,13 @@ AC_DEFUN([DUNE_STDTHREAD_TESTPROG], [dnl
t.join();
]])dnl
])
AC_DEFUN([DUNE_NO_AS_NEEDED], [dnl
AC_CACHE_CHECK([whether the linker needs -Wl,-no-as-needed],
[dune_cv_no_as_needed],
[AS_IF([test -f /etc/dpkg/origins/ubuntu], [dune_cv_no_as_needed="yes (Ubuntu)"],
[dune_cv_no_as_needed="no"])])
AS_CASE([$dune_cv_no_as_needed],
[yes|"yes "*], [NO_AS_NEEDED=-Wl,-no-as-needed],
[NO_AS_NEEDED=])
])
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