Commit Graph

28 Commits

Author SHA1 Message Date
Alexey Milovidov
b205d4919d Remove garbage 2023-11-20 01:24:28 +01:00
Amos Bird
c0f8a50e15
Avoid linking duplicate archives.
Or else libglibc-compatibility.a and libmemcpy.a will be listed twice.
2023-08-24 17:26:34 +08:00
Robert Schulze
1477887259
Initial removal of logic under COMPILER_GCC 2023-04-11 16:27:32 +00:00
Raúl Marín
5caba7000a Try a different approach 2022-11-15 17:53:24 +01:00
Azat Khuzhin
116af7dfb9 Move cmake/find/unwind.cmake -> cmake/unwind.cmake
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-31 16:01:12 +03:00
Azat Khuzhin
3e5ad1a138 Move cmake/find/cxx.cmake -> cmake/cxx.cmake
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-01-31 16:01:11 +03:00
Amos Bird
6adb3aa49a
Fix missing -Werror 2022-01-28 02:07:43 +08:00
Raúl Marín
6a04dcb492 Remove libc-headers 2021-11-29 19:55:57 +01:00
Raúl Marín
0bbf437843 Don't include contrib/libc-headers/ if GLIBC_COMPATIBILITY is off 2021-11-29 19:53:42 +01:00
Alexey Milovidov
7ecffd7186 Fix build 2021-11-24 15:43:09 +03:00
Alexey Milovidov
8d43a5d4b2 Maybe fix build 2021-11-24 03:01:21 +03:00
Alexey Milovidov
d604cf5573 Remove the infamous "unbundled" build 2021-11-21 13:58:26 +03:00
Alexey Milovidov
4848a6f97f Add CMakeLists 2021-10-16 02:07:13 +03:00
Alexey Milovidov
d4e496c314 Add support for PowerPC build 2021-10-12 01:47:57 +03:00
mastertheknife
00ed52e947 Fix finding libclang_rt.builtins on Fedora\RHEL\CentOS on ppc64le 2021-04-01 18:38:16 +03:00
Alexey Milovidov
b99634dc5d Merge branch 'master' into harmful 2020-12-21 03:03:10 +03:00
Azat Khuzhin
c862ae0c42 Explicitly link with -llib$SANITIZER for gcc
gcc with -nodefaultlibs does not add sanitizers library during linkage
with -static-libasan and similar, fix this, by add them explicitly.

From the gcc(1) about -nodefaultlibs:

    Do not use the standard system libraries when linking. Only the
    libraries you specify are passed to the linker, and options specifying
    linkage of the system libraries, such as -static-libgcc or
    -shared-libgcc, are ignored. The standard startup files are used
    normally, unless -nostartfiles is used.

Plus checked it manually, w/o -nodefaultlibs everything works without
this explicit linkage.

After this patch UBSAN under gcc compiled successfully.

v2: freebsd and darwin
2020-12-16 21:31:03 +03:00
Azat Khuzhin
1dca6e9269 cmake/linux/default_libs.cmake: fix alignment 2020-12-16 21:31:03 +03:00
Alexey Milovidov
91e80598cd Add "harmful" library 2020-10-28 02:00:16 +03:00
Alexander Kuzmenkov
3e6b9f297f Some provisions for Android build 2020-07-15 14:16:00 +03:00
alexey-milovidov
efc57fb063
Make the comment more readable. 2020-06-22 17:59:38 +03:00
Azat Khuzhin
f748021d9a Use libc-headers only for BUNDLED build (fixes gcc10 unbundled build)
libstdc++ from gcc10 uses pthread_mutex_clocklock() which is not yet
exists in contrib/libc-headres.

P.S. I can prepare an update for libc-contrib
2020-05-16 00:00:38 +03:00
Ivan Lezhankin
2d44fa59b5 libs/ → base/ 2020-02-14 17:48:30 +03:00
Alexey Milovidov
8f5e41ddfc Using libc-headers for cxx targets 2019-12-20 18:48:01 +03:00
Alexey Milovidov
1444b18e1c Fixed AArch64 build 2019-12-20 15:35:41 +03:00
Alexey Milovidov
687a8bf43b Using libc includes from custom directory 2019-12-20 04:24:25 +03:00
Ivan
4f2f5cca84
Add support for cross-compiling to the CPU architecture AARCH64 (#7370) 2019-10-30 10:01:53 +03:00
Ivan Lezhankin
f01706ad11 Refactor some cmake files 2019-09-13 17:56:26 +03:00