-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --enable-libgap to build system #2526
Conversation
Building GAP as an executable with --enable-libgap will yield a binary that ignores most signals. Added libgap files to .gitignore Added sysinfo.gap target to libgap target Added symlinks target to libgap target
@@ -85,3 +85,8 @@ doc/gapmacrodoc.idx | |||
/hpcgap/ward | |||
|
|||
/builds/ | |||
|
|||
#libGAP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a space after #
@@ -24,6 +24,9 @@ ADDGUARDS2 = @ADDGUARDS2@ | |||
# garbage collector source files | |||
GC_SOURCES = @GC_SOURCES@ | |||
|
|||
# Dynamic library |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dynamic -> dynamic (to match rest of the file)
@@ -412,6 +412,10 @@ gap$(EXEEXT): $(OBJS) cnf/GAP-LDFLAGS cnf/GAP-LIBS cnf/GAP-OBJS | |||
|
|||
endif | |||
|
|||
ifeq ($(BUILD_LIBGAP),yes) | |||
libgap.so: $(OBJS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is problematic. First off, .so
is not quite portable; e.g. on macOS, it should be .dylib
, and on Windows .dll
Anyway, we already do generated a shared library (see libgap.la
) using libtool, in a fully portable fashion, including setting rpaths etc. -- so can't we just use that? I guess I don't quite know how you "use" libgap later on, so it's a bit difficult for me to evaluate.
Codecov Report
@@ Coverage Diff @@
## master #2526 +/- ##
==========================================
- Coverage 74.34% 74.33% -0.01%
==========================================
Files 481 481
Lines 243408 243429 +21
==========================================
+ Hits 180958 180963 +5
- Misses 62450 62466 +16
|
[enable_libgap=no] | ||
) | ||
AC_MSG_CHECKING([whether to enable dynamic library mode]) | ||
AC_MSG_RESULT([$enable_libgap]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With PR #2528 we may not even need this anymore, nor BUILD_LIBGAP
Ok, so this is obsolete :). |
Building GAP as an executable with --enable-libgap will yield a binary
that ignores most signals.
Added libgap files to .gitignore
Added sysinfo.gap target to libgap target
Added symlinks target to libgap target
This is part of building LibGAP, see https://github.com/gap-system/gap/projects/5