summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makeconf b/Makeconf
index 1bb6c23d..46ed0cff 100644
--- a/Makeconf
+++ b/Makeconf
@@ -22,6 +22,7 @@ libpager := $(hurdinst)/lib/libpager.a
libfshelp := $(hurdinst)/lib/libfshelp.a
libdiskfs := $(hurdinst)/lib/libdiskfs.a
gccheaders = /usr/local/lib/gcc-lib/$(CCTARGET)/$(CCVERSION)/include
+libgcc := /usr/local/lib/gcc-lib/$(CCTARGET)/$(CCVERSION)/libgcc.a
# Flags for compilation
CPPFLAGS := -nostdinc -I$(headers) -I$(gccheaders)
@@ -38,7 +39,7 @@ ldflags = $(addprefix -Xlinker ,$(LDFLAGS))
define link
$(CC) -nostdlib -e __start $(ldflags) -o $@ $(CFLAGS) $(startup) \
-$(OBJS) $(LIBS) $(libthreads) $(libc) -lgcc
+$(OBJS) $(LIBS) $(libthreads) $(libc) $(libgcc)
endef
# Making a snapshot