summaryrefslogtreecommitdiff
blob: a6e050326871aaad99f4dc8110b3bd672c3f5ccc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- Makefile.in.orig	2008-06-30 20:01:49.000000000 +0300
+++ Makefile.in	2008-06-30 20:08:12.000000000 +0300
@@ -8,7 +8,7 @@
 VPATH = @srcdir@
 CC = @CC@
 LD = @LD@
-DEFS = @DEFS@ -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"$(HOST_ARCHITECTURE)\"
+DEFS = @DEFS@ -D_GNU_SOURCE -D__COMPILING_SCHEME48_ITSELF__ -DS48_HOST_ARCHITECTURE=\"$(HOST_ARCHITECTURE)\"
 LIBS = @LIBS@
 CFLAGS = @CFLAGS@
 CPPFLAGS =
@@ -286,8 +286,8 @@
 	c/scheme48.exp c/scheme48.def
 	$(CC) $(LDFLAGS) $(LDFLAGS_VM) $(CFLAGS) -o $@ c/main.o		\
 		$(OBJS) $(GC_OBJS) $(UNIX_OBJS)				\
-		$(LIBOBJS) $(LIBS)					\
-		$(EXTERNAL_OBJECTS)
+		$(LIBOBJS)						\
+		$(EXTERNAL_OBJECTS) $(LIBS)
 	# Cygwin
 	if test -x /usr/bin/dlltool; then \
 		dlltool --dllname $(VM).exe --output-lib $(VM).a --def $(srcdir)/c/scheme48.def; \
@@ -409,7 +409,7 @@
 	done
 
 inst-config-script:
-	config_script=$(bindir)/$(CONFIG_SCRIPT) &&			\
+	config_script=$(DESTDIR)$(bindir)/$(CONFIG_SCRIPT) &&			\
 	sed -e 's,@incdir\@,$(incdir),g'				\
 	    -e 's,@libdir\@,$(libdir),g'				\
 	    -e 's,@CC\@,$(CC),g'					\