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
2bf063c4
Commit
2bf063c4
authored
20 years ago
by
Thimo Neubauer
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: libGL needs pthread linker flag as well as compiler flag
[[Imported from SVN: r950]]
parent
e59331ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
m4/grape.m4
+5
-9
5 additions, 9 deletions
m4/grape.m4
m4/opengl.m4
+6
-2
6 additions, 2 deletions
m4/opengl.m4
with
11 additions
and
11 deletions
m4/grape.m4
+
5
−
9
View file @
2bf063c4
...
...
@@ -24,7 +24,6 @@ AC_DEFUN([DUNE_PATH_GRAPE],[
# store old values
ac_save_LDFLAGS="$LDFLAGS"
ac_save_CXXFLAGS="$CXXFLAGS"
ac_save_CPPFLAGS="$CPPFLAGS"
ac_save_LIBS="$LIBS"
...
...
@@ -62,14 +61,14 @@ if test "x$X_LIBS" != x && test x$with_grape != xno ; then
# if GL was found, add it implicitly...
# This is not the best choice, but testing without GL first and
# then trying again fails due to caching...
CXXFLAGS="$CXXFLAGS $GL_CFLAGS"
# !!! -lXext is somehow needed for libGL ?!
CPPFLAGS="$GRAPE_CPPFLAGS $GL_CFLAGS"
LIBS="$LIBS $GL_LIBS -lXext"
LDFLAGS="$LDFLAGS $GL_LDFLAGS"
AC_CHECK_LIB(gr, grape,
[GRAPE_LDFLAGS="-L$GRAPEROOT"
GRAPE_C
XX
FLAGS="$
GL_C
FLAGS"
GRAPE_LIBS="-lgr $GL_LIBS"],
[GRAPE_LDFLAGS="-L$GRAPEROOT
$GL_LDFLAGS
"
GRAPE_C
PP
FLAGS="$
CPP
FLAGS"
GRAPE_LIBS="-lgr $GL_LIBS
-lXext
"],
[HAVE_GRAPE="0"])
fi
...
...
@@ -78,14 +77,12 @@ if test "x$X_LIBS" != x && test x$with_grape != xno ; then
AC_SUBST(GRAPE_LIBS, $GRAPE_LIBS)
AC_SUBST(GRAPE_LDFLAGS, $GRAPE_LDFLAGS)
AC_SUBST(GRAPE_CPPFLAGS, $GRAPE_CPPFLAGS)
AC_SUBST(GRAPE_CXXFLAGS, $GRAPE_CXXFLAGS)
AC_DEFINE(HAVE_GRAPE, 1, [Define to 1 if grape-library is found])
# add to global list
DUNE_PKG_LDFLAGS="$DUNE_PKG_LDFLAGS $GRAPE_LDFLAGS"
DUNE_PKG_LIBS="$DUNE_PKG_LIBS $GRAPE_LIBS"
DUNE_PKG_CPPFLAGS="$DUNE_PKG_CPPFLAGS $GRAPE_CPPFLAGS"
DUNE_PKG_CXXFLAGS="$DUNE_PKG_CXXFLAGS $GRAPE_CXXFLAGS"
fi
fi
...
...
@@ -101,7 +98,6 @@ AM_CONDITIONAL(GRAPE, test x$HAVE_GRAPE = x1)
# reset old values
LIBS="$ac_save_LIBS"
CXXFLAGS="$ac_save_CXXFLAGS"
CPPFLAGS="$ac_save_CPPFLAGS"
LDFLAGS="$ac_save_LDFLAGS"
...
...
This diff is collapsed.
Click to expand it.
m4/opengl.m4
+
6
−
2
View file @
2bf063c4
...
...
@@ -5,11 +5,15 @@ AC_DEFUN([DUNE_PATH_OPENGL],[
dnl use test from autoconf-archive
AC_REQUIRE([AX_CHECK_GL])
# now GL_LIBS and GL_CFLAGS is set, just as we want it :)
# GL_LIBS and GL_CFLAGS already set correctly, they implicitly
# contain pthread support!
#
set
variable for summary
# variable for summary
with_opengl="no"
if test "$no_gl" != "yes" ; then
with_opengl="yes"
# need pthreads-stuff in linker commandline as well
AC_SUBST(GL_LDFLAGS, $PTHREAD_CFLAGS)
fi
])
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