Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

sebasguts
Copy link
Member

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

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
Copy link
Member

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
Copy link
Member

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)
Copy link
Member

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
Copy link

codecov bot commented Jun 7, 2018

Codecov Report

Merging #2526 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            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
Impacted Files Coverage Δ
lib/grpprmcs.gi 82.18% <0%> (-1.8%) ⬇️
lib/magma.gi 53.12% <0%> (-1.48%) ⬇️
lib/modfree.gi 77.39% <0%> (-1.37%) ⬇️
hpcgap/lib/hpc/stdtasks.g 63.42% <0%> (-1.28%) ⬇️
lib/module.gi 57.96% <0%> (-0.64%) ⬇️
lib/smgrpfre.gi 74.33% <0%> (-0.45%) ⬇️
lib/coll.gi 94.32% <0%> (-0.37%) ⬇️
src/gasman.c 85.79% <0%> (-0.18%) ⬇️
lib/csetgrp.gi 59.16% <0%> (-0.16%) ⬇️
lib/vecmat.gi 67.32% <0%> (-0.15%) ⬇️
... and 25 more

[enable_libgap=no]
)
AC_MSG_CHECKING([whether to enable dynamic library mode])
AC_MSG_RESULT([$enable_libgap])
Copy link
Member

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

@sebasguts
Copy link
Member Author

Ok, so this is obsolete :).

@sebasguts sebasguts closed this Jun 7, 2018
@olexandr-konovalov olexandr-konovalov added the gapdays2018-spring Issues and PRs that arose at http://www.gapdays.de/gap-jupyter-days2018 label Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gapdays2018-spring Issues and PRs that arose at http://www.gapdays.de/gap-jupyter-days2018 topic: build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants