mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 14:07:34 +02:00
adding linux platform disjoint from unix, linking with rpath
This commit is contained in:
parent
0fcba1ad3d
commit
700e92cb88
1 changed files with 11 additions and 2 deletions
13
Makefile
13
Makefile
|
@ -41,11 +41,15 @@ PLATFORM=cygwin
|
||||||
SOLIBDIR = $(BINDIR)
|
SOLIBDIR = $(BINDIR)
|
||||||
DIFFOPTS = -b
|
DIFFOPTS = -b
|
||||||
else
|
else
|
||||||
|
ifeq ($(shell uname -o),GNU/Linux)
|
||||||
|
PLATFORM=linux
|
||||||
|
else
|
||||||
PLATFORM=unix
|
PLATFORM=unix
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(PLATFORM),macosx)
|
ifeq ($(PLATFORM),macosx)
|
||||||
SO = .dylib
|
SO = .dylib
|
||||||
|
@ -79,6 +83,11 @@ endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PLATFORM),unix)
|
||||||
|
#RLDFLAGS=-rpath $(DESTDIR)$(LIBDIR)
|
||||||
|
RLDFLAGS=-Wl,-R$(DESTDIR)$(LIBDIR)
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_BOEHM),1)
|
ifeq ($(USE_BOEHM),1)
|
||||||
SEXP_USE_BOEHM = 1
|
SEXP_USE_BOEHM = 1
|
||||||
endif
|
endif
|
||||||
|
@ -92,10 +101,10 @@ XCPPFLAGS := $(CPPFLAGS) -Iinclude $(D:%=-DSEXP_USE_%)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(SEXP_USE_DL),0)
|
ifeq ($(SEXP_USE_DL),0)
|
||||||
XLDFLAGS := $(LDFLAGS) $(GCLDFLAGS) -lm
|
XLDFLAGS := $(LDFLAGS) $(RLDFLAGS) $(GCLDFLAGS) -lm
|
||||||
XCFLAGS := -Wall -DSEXP_USE_DL=0 -g3 $(CFLAGS)
|
XCFLAGS := -Wall -DSEXP_USE_DL=0 -g3 $(CFLAGS)
|
||||||
else
|
else
|
||||||
XLDFLAGS := $(LDFLAGS) $(GCLDFLAGS) $(LIBDL) -lm
|
XLDFLAGS := $(LDFLAGS) $(RLDFLAGS) $(GCLDFLAGS) $(LIBDL) -lm
|
||||||
XCFLAGS := -Wall -g3 $(CFLAGS)
|
XCFLAGS := -Wall -g3 $(CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue