Skip to content

Commit

Permalink
Fixed gcc issues on Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge Vakulenko committed Apr 28, 2014
1 parent b38aad7 commit 60e1d3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion share/mk-pic32/local.prog.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ LIBCOMPAT?= /usr/lib/libcompat.a
LIBCURSES?= /usr/lib/libcurses.a
LIBDBM?= /usr/lib/libdbm.a
LIBDES?= /usr/lib/libdes.a
LIBL?= /usr/lib/libl.a
LIBKDB?= /usr/lib/libkdb.a
LIBKRB?= /usr/lib/libkrb.a
LIBKVM?= /usr/lib/libkvm.a
Expand Down
8 changes: 4 additions & 4 deletions sys/mips/conf/Makefile.pic32
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
AS= ${MIPS_GCC_PREFIX}as ${DEBUG}
CC= ${MIPS_GCC_PREFIX}gcc ${DEBUG} -fno-builtin
AS= ${MIPS_GCC_PREFIX}as ${DEBUG} -mips32r2 -EL
CC= ${MIPS_GCC_PREFIX}gcc ${DEBUG} -mips32r2 -EL -msoft-float -nostdinc -fno-builtin
LOCALCC= gcc -m32 ${DEBUG}
CPP= cpp
LD= ${MIPS_GCC_PREFIX}gcc
LD= ${MIPS_GCC_PREFIX}gcc -mips32r2 -EL
LDFLAGS= -nostdlib -T $A/pic32/bootloader-max32.ld -Wl,-Map=unix.map
SIZE= ${MIPS_GCC_PREFIX}size

Expand Down Expand Up @@ -71,7 +71,7 @@ SYSTEM_LD_TAIL= ${SIZE} $@
%LOAD

$S/libkern/libkern.a:
${MAKE} -C $S/libkern all
cd $S/libkern && ${MAKE} all

newvers:
sh $S/conf/newvers.sh
Expand Down
2 changes: 1 addition & 1 deletion usr.sbin/config/mkioconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ void comp_config(fp)
dp->d_unit, dp->d_pri < 0 ? 0 : dp->d_pri,
dp->d_flags, 1);
for (fl = fl->f_next; fl->f_type == COMPSPEC; fl = fl->f_next)
fprintf(fp, " 0x%x,", fl->f_compdev);
fprintf(fp, " 0x%x,", (unsigned) fl->f_compdev);
fprintf(fp, " NODEV },\n");
}
fprintf(fp, "\t-1,\t0,\t0,\t0,\t{ 0 },\n};\n");
Expand Down

0 comments on commit 60e1d3b

Please sign in to comment.