-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,3 +85,8 @@ doc/gapmacrodoc.idx | |
/hpcgap/ward | ||
|
||
/builds/ | ||
|
||
#libGAP | ||
libgap.la | ||
.libs | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. Dynamic -> dynamic (to match rest of the file) |
||
BUILD_LIBGAP = @BUILD_LIBGAP@ | ||
|
||
# compatibility mode | ||
COMPAT_MODE = @COMPAT_MODE@ | ||
GAPARCH = @GAPARCH@ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
all: gap$(EXEEXT) gac | ||
.PHONY: all | ||
|
||
libgap: libgap.la | ||
libgap: libgap.la sysinfo.gap symlinks | ||
.PHONY: libgap | ||
|
||
# Backwards compatibility: add "default" target as alias for "all" | ||
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. This is problematic. First off, Anyway, we already do generated a shared library (see |
||
$(QUIET_LINK)$(LINK) $(GAP_LDFLAGS) -shared $(OBJS) $(GAP_LIBS) -o $@ | ||
endif | ||
|
||
######################################################################## | ||
# The "docomp" target regenerates the various src/c_*.c files, and | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,6 +227,17 @@ AS_CASE([$with_gc], | |
) | ||
AC_MSG_RESULT([$with_gc]) | ||
|
||
dnl | ||
dnl User setting: dynamic library mode (off by default) | ||
dnl | ||
AC_ARG_ENABLE([libgap], | ||
[AS_HELP_STRING([--enable-libgap], [enable building of dynamic library])], | ||
[AC_DEFINE([BUILD_LIBGAP], [1], [define if building libgap])], | ||
[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 commentThe reason will be displayed to describe this comment to others. Learn more. With PR #2528 we may not even need this anymore, nor |
||
|
||
dnl | ||
dnl User setting: Debug mode (off by default) | ||
dnl | ||
|
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
#