diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-13 18:00:16 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-13 18:00:16 +0000 |
commit | 030292b70ecb623482264bd03ddf9ced4d9b0bbe (patch) | |
tree | f75fe864f2a5f72c5adc69fff2fc5b45e53b127a /gdb/Makefile.in | |
parent | f5ebfba0cad0523f81fe510be73c90edd6e2b17b (diff) | |
download | gdb-030292b70ecb623482264bd03ddf9ced4d9b0bbe.zip gdb-030292b70ecb623482264bd03ddf9ced4d9b0bbe.tar.gz gdb-030292b70ecb623482264bd03ddf9ced4d9b0bbe.tar.bz2 |
* Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
variables.
(main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
* configure.in: Add --with-sysroot.
* configure: Regenerated.
* main.c (gdb_sysroot): New variable.
(captured_main): Initialize gdb_sysroot.
* defs.h (gdb_sysroot): New extern declaration.
* solib.c (_initialize_solib): Initialize solib_absolute_prefix.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 057405f..c0847dd 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -136,6 +136,10 @@ INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC) # Where is the ICONV library? This can be empty if libc has iconv. LIBICONV = @LIBICONV@ +# Did the user give us a --with-sysroot option? +TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@ +TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@ + # # CLI sub directory definitons # @@ -1403,6 +1407,11 @@ hpux-thread.o: $(srcdir)/hpux-thread.c -I$(srcdir)/osf-share/HP800 -I/usr/include/dce \ $(srcdir)/hpux-thread.c +# main.o needs an explicit build rule to get TARGET_SYSTEM_ROOT and BINDIR. +main.o: main.c + $(CC) -c $(INTERNAL_CFLAGS) $(TARGET_SYSTEM_ROOT_DEFINE) \ + -DBINDIR=\"$(bindir)\" $(srcdir)/main.c + # FIXME: Procfs.o gets -Wformat errors because things like pid_t don't # match output format strings. procfs.o: $(srcdir)/procfs.c |