Changeset 98


Ignore:
Timestamp:
Mar 23, 2007, 11:07:52 PM (18 years ago)
Author:
rainer
Message:

Fix for ticket #58 (cross-compiling does not work).

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r95 r98  
    7878
    7979CC = @CC@
     80BUILD_CC = @BUILD_CC@
    8081# DBGDEF = -pg -DSH_PROFILE=1
    8182DBGDEF = @mydebugdef@
     
    241242
    242243depend-gen: $(srcsrc)/depend-gen.c
    243         @echo "$(CC) $(CFLAGS) -o depend-gen $(srcsrc)/depend-gen.c"; \
    244         $(CC) $(CFLAGS) -o depend-gen $(srcsrc)/depend-gen.c 2>/dev/null || \
     244        @echo "$(BUILD_CC) -I. -o depend-gen $(srcsrc)/depend-gen.c"; \
     245        $(BUILD_CC) -I. -o depend-gen $(srcsrc)/depend-gen.c 2>/dev/null || \
    245246        echo "failed to compile ... hope depend.dep is ok"
    246247
     
    10781079
    10791080sstrip: $(srcsrc)/sstrip.c Makefile
    1080         $(COMPILE)  -o sstrip $(srcsrc)/sstrip.c
     1081        $(BUILD_CC) -I.  -o sstrip $(srcsrc)/sstrip.c
    10811082
    10821083encode: $(srcsrc)/encode.c Makefile
    1083         $(COMPILE) -o encode $(srcsrc)/encode.c
     1084        $(BUILD_CC) -I. -o encode $(srcsrc)/encode.c
    10841085
    10851086config_xor.h: config.h encode
     
    12041205# For kernel syscall monitoring
    12051206kern_head: Makefile $(top_srcdir)/include/kern_head.h $(srcsrc)/kern_head.c
    1206         @echo "$(COMPILE) -DSYSTEMMAP=\"@systemmap@\" -o kern_head $(srcsrc)/kern_head.c $(LIBS_KVM)"; \
    1207         $(COMPILE) -DSYSTEMMAP=\"@systemmap@\" -o kern_head $(srcsrc)/kern_head.c $(LIBS_KVM)
     1207        @echo "$(BUILD_CC) -I. -DSYSTEMMAP=\"@systemmap@\" -o kern_head $(srcsrc)/kern_head.c $(LIBS_KVM)"; \
     1208        $(BUILD_CC) -I. -DSYSTEMMAP=\"@systemmap@\" -o kern_head $(srcsrc)/kern_head.c $(LIBS_KVM)
    12081209
    12091210sh_ks.h: kern_head
     
    12281229
    12291230mkhdr: $(srcsrc)/mkhdr.c config.h
    1230         @echo "$(COMPILE) -o mkhdr $(srcsrc)/mkhdr.c"; \
     1231        @echo "$(BUILD_CC) -I. -o mkhdr $(srcsrc)/mkhdr.c"; \
    12311232        sleep 1; \
    1232         $(COMPILE) -o mkhdr $(srcsrc)/mkhdr.c
     1233        $(BUILD_CC) -I. -o mkhdr $(srcsrc)/mkhdr.c
    12331234
    12341235#       $(COMPILE)  -DBIG_SHORT_NAMES -o mkhdr $(srcdir)/mkhdr.c
  • trunk/configure.ac

    r97 r98  
    2121
    2222AC_PROG_CC
     23if test "$host" != "$build"; then
     24   AC_CHECK_PROGS(BUILD_CC, gcc cc)
     25else
     26   BUILD_CC=$CC
     27fi
    2328AC_PROG_CPP
    2429AC_PROG_INSTALL
     
    2732AC_PATH_PROG(cmd_hostname,hostname)
    2833AC_SUBST(cmd_hostname)
     34AC_SUBST(BUILD_CC)
    2935
    3036GCC_STACK_PROTECT_CC
     
    199205        sys/select.h sys/socket.h netinet/in.h \
    200206        regex.h glob.h \
    201         linux/ext2_fs.h ext2fs/ext2_fs.h \
     207        linux/ext2_fs.h linux/fs.h ext2fs/ext2_fs.h \
    202208        elf.h linux/elf.h \
    203209        paths.h arpa/nameser.h arpa/nameser_compat.h \
  • trunk/src/sh_unix.c

    r93 r98  
    2525#include <string.h>
    2626#include <ctype.h>
    27 
     27#ifdef HAVE_LINUX_FS_H
     28#include <linux/fs.h>
     29#endif
    2830
    2931#ifdef HAVE_MEMORY_H
  • trunk/src/yulectl.c

    r34 r98  
    384384      if (verbose && (errno == ENOENT))
    385385        fprintf (stdout,
    386                  _("# Password file (%s) missing\n"),
     386                 _("# No password file (%s) exists\n"),
    387387                 home);
    388388      else if (verbose)
Note: See TracChangeset for help on using the changeset viewer.