Skip to content

Commit

Permalink
Fixes for building superconfigure (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahgamut authored Nov 12, 2023
1 parent b320321 commit 95124ca
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Empty file added libc/isystem/cxxabi.h
Empty file.
4 changes: 4 additions & 0 deletions libc/isystem/future
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef COSMOPOLITAN_LIBC_ISYSTEM_FUTURE_
#define COSMOPOLITAN_LIBC_ISYSTEM_FUTURE_
#include "third_party/libcxx/future"
#endif /* COSMOPOLITAN_LIBC_ISYSTEM_FUTURE_ */
2 changes: 2 additions & 0 deletions libc/libc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ libc/isystem/ctime \
libc/isystem/ctype.h \
libc/isystem/cwchar \
libc/isystem/cwctype \
libc/isystem/cxxabi.h \
libc/isystem/deque \
libc/isystem/dirent.h \
libc/isystem/dlfcn.h \
Expand All @@ -77,6 +78,7 @@ libc/isystem/forward_list \
libc/isystem/fstream \
libc/isystem/ftw.h \
libc/isystem/functional \
libc/isystem/future \
libc/isystem/getopt.h \
libc/isystem/glob.h \
libc/isystem/grp.h \
Expand Down
7 changes: 6 additions & 1 deletion tool/cosmocc/bin/cosmocross
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@ fi
CC="$BIN/$ARCH-linux-cosmo-gcc"
CRT="$BIN/../$ARCH-linux-cosmo/lib/crt.o"
LDLIBS="-lcosmo"
LDFLAGS="$LDFLAGS -L$BIN/../$ARCH-linux-cosmo/lib"
if [ -z "$COSMOS" ]; then
LDFLAGS="$LDFLAGS -L$BIN/../$ARCH-linux-cosmo/lib"
else
LDFLAGS="$LDFLAGS -L$COSMOS/lib -L$BIN/../$ARCH-linux-cosmo/lib"
CPPFLAGS="$CPPFLAGS -I$COSMOS/include"
fi
if [ x"$PROG" != x"${PROG%++}" ]; then
CC="$BIN/$ARCH-linux-cosmo-g++"
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -fuse-cxa-atexit"
Expand Down

0 comments on commit 95124ca

Please sign in to comment.