diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2009-11-20 16:50:04 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2009-11-20 17:51:23 +0100 |
commit | ebd762b2ed4864f0047e7a1e677adc1d54903463 (patch) | |
tree | 47a65e3cf49673f3671ba9d992a665c955690765 /bootstrap | |
parent | 47f36af857e431d6b1da1dc29141010979fc4123 (diff) | |
download | grep-ebd762b2ed4864f0047e7a1e677adc1d54903463.tar.gz |
quickly hack my way into bootstrapping until gnulib is in use
* bootstrap/Makefile.try: Adjust.
* lib/savedir.c: Avoid using stpcpy, so that bootstrapping does not need it.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/Makefile.try | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bootstrap/Makefile.try b/bootstrap/Makefile.try index 66b05995..5a8b3115 100644 --- a/bootstrap/Makefile.try +++ b/bootstrap/Makefile.try @@ -59,20 +59,16 @@ LIB_OBJ_getopt = $(libdir)/getopt.$(OBJEXT) $(libdir)/getopt1.$(OBJEXT) #LIB_OBJ_memchr = $(libdir)/memchr.$(OBJEXT) LIB_OBJ_obstack = $(libdir)/obstack.$(OBJEXT) #LIB_OBJ_strtoul = $(libdir)/strtoul.$(OBJEXT) -LIB_OBJ_stpcpy = $(libdir)/stpcpy.$(OBJEXT) -LIB_OBJ_strtoull = $(libdir)/strtoull.$(OBJEXT) LIB_OBJS = $(LIB_OBJS_core) $(LIB_OBJ_atexit) $(LIB_OBJ_alloca) \ $(LIB_OBJ_fnmatch) $(LIB_OBJ_getopt) $(LIB_OBJ_memchr) \ - $(LIB_OBJ_obstack) $(LIB_OBJ_strtoul) $(LIB_OBJ_stpcpy) \ - $(LIB_OBJ_strtoull) + $(LIB_OBJ_obstack) $(LIB_OBJ_strtoul) # For Linux #LIB_OBJS = $(LIB_OBJS_core) # For QNX/Neutrino -#LIB_OBJS = $(LIB_OBJS_core) $(LIB_OBJ_getopt) $(LIB_OBJ_obstack) \ -# $(LIB_OBJ_stpcpy) $(LIB_OBJ_strtoull) +#LIB_OBJS = $(LIB_OBJS_core) $(LIB_OBJ_getopt) $(LIB_OBJ_obstack) # Where is DIR and opendir/readdir defined. # or -DHAVE_DIRENT_H @@ -91,7 +87,6 @@ DEFS_core = \ -DHAVE_DIRENT_H \ -DHAVE_STRERROR \ -Dconst= \ - -Dsize_t=unsigned \ -Duintmax_t=long # SunOS-4.1.x k&r cc @@ -111,7 +106,8 @@ DEFS_ansi_c = -DPROTOTYPES # No wchar support # DEFS_wchar = -DUSE_WIDE_CHAR -DHAVE_WCHAR_H -DEFS_wchar = -Dwchar_t=int -Dmbstate_t=int +# DEFS_wchar = -Dwchar_t=int -Dmbstate_t=int +DEFS_wchar = -DHAVE_WCHAR_H # Is strtol() and strtoul() declarared ? #DEFS_strtol = -DHAVE_DECL_STRTOULL=0 -DHAVE_DECL_STRTOUL=0 @@ -124,12 +120,16 @@ DEFS_alloc = -DHAVE_DONE_WORKING_MALLOC_CHECK=1 \ -DHAVE_DONE_WORKING_REALLOC_CHECK=1 DEFS = $(DEFS_core) $(DEFS_ansi_c) $(DEFS_wchar) $(DEFS_strtol) $(DEFS_alloc) \ - -DHAVE_DECL_STRERROR_R=0 -DHAVE_VPRINTF -DCHAR_BIT=8 + -DHAVE_DECL_STRERROR_R=1 -DHAVE_VPRINTF -DCHAR_BIT=8 \ + -DSTDOUT_FILENO=1 #### -CFLAGS = $(DEFS) -I. -I.. -I$(libdir) -DVERSION=\"bootstrap\" -DPACKAGE=\"grep\" +CFLAGS = $(DEFS) -I. -I.. -I$(libdir) \ + -DVERSION=\"bootstrap\" -DPACKAGE=\"grep\" \ + -DPACKAGE_STRING=\"grep\ bootstrap\" \ + -DPACKAGE_BUGREPORT=\"bug-grep@gnu.org\" libdir = ../lib |