(defun make-user-init (files outn)
(let* ((c (pathname outn))
- (c (merge-pathnames c (make-pathname :directory '(:current))))
+ (c (merge-pathnames c (make-pathname :directory '(:relative))))
(o (merge-pathnames (make-pathname :type "o") c))
(c (merge-pathnames (make-pathname :type "c") c)))
(with-open-file (st (namestring map) :direction :output))
(safe-system
- (let* ((par (namestring (make-pathname :directory '(:back))))
+ (let* ((par (namestring (make-pathname :directory '(:relative :back))))
(i (concatenate 'string " " par))
(j (concatenate 'string " " si::*system-directory* par)))
(format nil "~a ~a ~a ~a -L~a ~a ~a ~a"
rm -f ${GUIOS} $(OFILES) gcltkaux gcltksrv *.o */*.o demos/index.lsp *.fn demos/*.fn
.c.o:
- $(GCLTKCC) -c $(CFLAGS1) ${ODIR_DEBUG} $*.c
+ $(GCLTKCC) -c $(filter-out -pg,$(CFLAGS1)) -fPIE ${ODIR_DEBUG} $*.c
# for some reason -lieee is on various linux systems in the list of requireds..
gcltkaux: $(GUIOS)
- $(LD_ORDINARY_CC) $(GUIOS) $(LDFLAGS) -o gcltkaux ${TK_LIB_SPEC} ${TCL_LIB_SPEC}
+ $(LD_ORDINARY_CC) $(GUIOS) $(filter-out %gcl.script,$(LDFLAGS)) -pie -o gcltkaux ${TK_LIB_SPEC} ${TCL_LIB_SPEC}
gcltksrv: makefile
cat gcltksrv.in | sed -e "s!TK_LIBRARY=.*!TK_LIBRARY=${TK_LIBRARY}!g" \
#define NEED_STACK_CHK_GUARD
-#define DEFINED_REAL_MAXPAGE (1UL<<18) /*FIXME brk probe broken*/
+#undef HAVE_D_TYPE /*FIXME defined, but not implemented in readdir*/
MMcons(make_fixnum(DT_UNKNOWN),make_keyword("UNKNOWN"))
)
#else
+#undef DT_UNKNOWN
#define DT_UNKNOWN 0
+#undef DT_REG
#define DT_REG 1
+#undef DT_DIR
#define DT_DIR 2
list(3,
MMcons(make_fixnum(DT_REG),make_keyword("FILE")),