Skip to content

Commit

Permalink
libc++: use build defines and flags similar to upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryAndric committed Feb 9, 2024
1 parent 66f3903 commit a0cf20a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/libc++/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,21 @@ cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA
.endfor

WARNS?= 0
CFLAGS+= -isystem ${SRCDIR}
CFLAGS+= -isystem ${.CURDIR}
CFLAGS+= -isystem ${HDRDIR}
CFLAGS+= -isystem ${SRCDIR}
CFLAGS+= -isystem ${_LIBCXXRTDIR}
CFLAGS+= -nostdinc++
CFLAGS+= -nostdlib
CFLAGS+= -D_LIBCPP_BUILDING_LIBRARY
CFLAGS+= -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
CFLAGS+= -D_LIBCPP_REMOVE_TRANSITIVE_INCLUDES
CFLAGS+= -DLIBCXXRT
CFLAGS+= -ffunction-sections
CFLAGS+= -fdata-sections
CFLAGS+= -ffunction-sections
CFLAGS+= -fno-semantic-interposition
CFLAGS+= -fvisibility-inlines-hidden
CFLAGS+= -fvisibility=hidden
CXXSTD?= c++20

LIBADD+= cxxrt
Expand Down

0 comments on commit a0cf20a

Please sign in to comment.