Skip to content

Commit

Permalink
gap-install set -rpath after all..
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 16, 2024
1 parent 969341c commit b7484a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,13 @@ build/main.c: src/main.c
@cat $< >> $@

# build rule for the gap executable used by the `install-bin` target
#
# we add the -Wl,-rpath,$(libdir) to make it work on Linux when installed in a
# non-system prefix (as we do for our tests), where $(libdir) is not in one of
# the default linker search directories. An alternative might be to set
# LD_LIBRARY_PATH during our tests...
build/gap-install: libgap$(SHLIB_EXT) cnf/GAP-LDFLAGS cnf/GAP-LIBS cnf/GAP-OBJS build/obj/build/main.c.o
$(QUIET_LINK)$(LINK) $(GAP_LDFLAGS) build/obj/build/main.c.o $(GAP_LIBS) -L${abs_builddir} -lgap -o $@
$(QUIET_LINK)$(LINK) $(GAP_LDFLAGS) build/obj/build/main.c.o $(GAP_LIBS) -Wl,-rpath,$(libdir) -L${abs_builddir} -lgap -o $@

endif

Expand Down

0 comments on commit b7484a8

Please sign in to comment.