Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
2767fab3
Commit
2767fab3
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Modify the BGL m4 script to avoid using the API or HEADER on Front-end-node,
the static libraries will not function.
parent
4a1db425
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auxdir/x_ac_bgl.m4
+21
-8
21 additions, 8 deletions
auxdir/x_ac_bgl.m4
with
21 additions
and
8 deletions
auxdir/x_ac_bgl.m4
+
21
−
8
View file @
2767fab3
...
@@ -33,30 +33,43 @@ AC_DEFUN([X_AC_BGL],
...
@@ -33,30 +33,43 @@ AC_DEFUN([X_AC_BGL],
fi
fi
have_bgl_ar=yes
have_bgl_ar=yes
BGL_LDFLAGS="$BGL_LDFLAGS
-Wl,-rpath $bgl_dir/lib -Wl,-L$bgl_dir/lib -Wl,-whole-archive -Wl,-lbglbridge -Wl,-no-whole-archive $bgl_dir/lib/bglbootload.a $bgl_dir/lib/bglsp440supt.a -lbgldb -lbglmachine -ltableapi -lexpat -lbglsp"
bgl_ldflags="$bgl_ldflags
-Wl,-rpath $bgl_dir/lib -Wl,-L$bgl_dir/lib -Wl,-whole-archive -Wl,-lbglbridge -Wl,-no-whole-archive $bgl_dir/lib/bglbootload.a $bgl_dir/lib/bglsp440supt.a -lbgldb -lbglmachine -ltableapi -lexpat -lbglsp"
fi
fi
# Search for required DB2 library in the directory
# Search for required DB2 library in the directory
if test -z "$have_db2" -a -f "$bgl_dir/lib/libdb2.so" ; then
if test -z "$have_db2" -a -f "$bgl_dir/lib/libdb2.so" ; then
have_db2=yes
have_db2=yes
BGL_LDFLAGS="$BGL_LDFLAGS
-Wl,-rpath $bgl_dir/lib -L$bgl_dir/lib -ldb2"
bgl_ldflags="$bgl_ldflags
-Wl,-rpath $bgl_dir/lib -L$bgl_dir/lib -ldb2"
fi
fi
# Search for headers in the directory
# Search for headers in the directory
if test -z "$have_bgl_hdr" -a -f "$bgl_dir/include/rm_api.h" ; then
if test -z "$have_bgl_hdr" -a -f "$bgl_dir/include/rm_api.h" ; then
have_bgl_hdr=yes
have_bgl_hdr=yes
BGL_INCLUDES
="-I$bgl_dir/include"
bgl_includes
="-I$bgl_dir/include"
fi
fi
done
done
AC_SUBST(BGL_INCLUDES)
AC_SUBST(BGL_LDFLAGS)
if test ! -z "$have_bgl_ar" -a ! -z "$have_bgl_hdr" -a ! -z "$have_db2" ; then
if test ! -z "$have_bgl_ar" -a ! -z "$have_bgl_hdr" -a ! -z "$have_db2" ; then
AC_DEFINE(HAVE_BGL, 1, [Define to 1 if emulating or running on Blue Gene s
ystem])
AC_DEFINE(HAVE_FRONT_END, 1, [Define to 1 if running slurmd on front-end o
nly])
ac_with_readline="no"
ac_with_readline="no"
AC_DEFINE(HAVE_BGL, 1, [Define to 1 if emulating or running on Blue Gene system])
saved_LDFLAGS="$LDFLAGS"
LDFLAGS="$saved_LDFLAGS $bgl_ldflags"
AC_TRY_LINK(
[ int rm_set_serial(char *); ],
[ rm_set_serial(""); ],
have_bgl_files=yes, [])
LDFLAGS="$saved_LDFLAGS"
fi
if test ! -z "$have_bgl_files" ; then
BGL_INCLUDES="$bgl_includes"
BGL_LDFLAGS="$bgl_ldflags"
AC_DEFINE(HAVE_BGL_FILES, 1, [Define to 1 if have Blue Gene files])
AC_DEFINE(HAVE_BGL_FILES, 1, [Define to 1 if have Blue Gene files])
AC_DEFINE(HAVE_FRONT_END, 1, [Define to 1 if running slurmd on front-end only])
fi
fi
AC_SUBST(BGL_INCLUDES)
AC_SUBST(BGL_LDFLAGS)
])
])
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