summaryrefslogtreecommitdiff
path: root/Ports/.hosted_defs.sh
AgeCommit message (Collapse)Author
2023-01-29Ports: Support multiple port directoriesJan200101
This allows Ports unfit for the main repository to be put elsewhere.
2023-01-06Ports: Set `$LD` for Clang, GCC and host in `.hosted_defs.sh`EWouters
Sets `$LD` to `$HOST_LD` in `.port_include.sh` if it is defined as well, else it will be set to `ld`. Makes libiconv build with the Clang toolchain. This also impacts other ports when building them with the Clang toolchain, and might result in more ports building correctly.
2022-12-31Ports: Use absolute path of scriptJan200101
The relative paths are not valid inside a port build directory. This makes target_env source .hosted_defs.sh correctly.
2022-12-13Ports: Find cmake in Toolchain/Local/cmake if builtAndrew Kaster
If a developer built cmake (or we built it for them) from source, make sure that port builds can find that version of CMake that has the SerenityOS platform files included.
2022-10-03Meta: Make x86-64 target the defaultLiav A
This is a preparation to check if our users find noticeable bugs in the x86-64 target, before we can decide if we want to remove the i686 target for good.
2022-09-16Ports: Remove the duplicated Clang compiler symlinksTim Schumacher
Those have been added to the Clang build script in d4d6f2d945153e9f77c4cfeee12cd0fcc6b72b68, and now that the Clang version has been updated, everyone should have those symlinks already anyways.
2022-06-19Ports: Use $arch-serenity-pc-clang{++} for CC and CXXAndrew Kaster
This lets us eliminate the extra arguments on CC and CXX for ports that care about CC and CXX pointing to actual filenames they can invoke realpath or basename on.
2022-06-19Ports: Add variables for Toolchain binary directory and cxxfiltAndrew Kaster
2022-05-21Ports: Remove the `/usr/lib` pkg-config pathTim Schumacher
Our Ports are exclusively installed to `/usr/local/lib`, so having `/usr/lib` in there as well doesn't make much sense.
2022-05-12Ports: Add $STRIP and $HOST_STRIP variablesDaniel Bertalan
This fixes stripping the debug information from the gcc port when building on macOS hosts.
2022-05-03Ports: Fix the default Toolchain name in .hosted_defs.shTim Schumacher
2022-04-26Ports: Make .hosted_defs.sh usable outside of .port_include.shcircl
This commit moves some stuff around in order to isolate .hosted_defs.sh from .port_include.sh
2022-02-20Ports: Use the objcopy built as part of the toolchainDaniel Bertalan
Relying on host tools working correctly is not a good idea, as they may be outdated (and therefore not support features like RELR relocations) or may not exist at all (like objcopy on macOS).
2022-01-08Ports: Add $READELF and $HOST_READELF variables to include scriptsAndrew Kaster
Ports such as python require a distinction between host readelf and target readelf. Set a toolchain-specific varaible for these, but be sure save off the host readelf binary in case anyone needs it later. This is part of allowing python to build with the Clang toolchain.
2021-10-17Ports: Make it possible to build (some) ports with ClangDaniel Bertalan
This commit introduces the changes needed in the port build system that will allow us to compile ports with Clang. Note that many ports still don't build, especially due to linker differences. Fixing these is outside the scope of this PR. For now, building bash, ncurses and nano is known to work. Bash runs fine, while nano crashes due to DT_VERSYM not being supported by our dynamic loader.
2021-10-17Ports: Remove long unused SERENITY_ROOT from .hosted_defs.shLinus Groh
2021-04-27Ports: Use HOST_PATH when updating the PATH variableGunnar Beutner
Previously we'd just append to the existing PATH environment variable rather than resetting it to HOST_PATH first.
2021-04-20Everywhere: Replace SERENITY_ROOT with SERENITY_SOURCE_DIRPanagiotis Vasilopoulos
2021-04-19Ports: Improve variable names in .hosted_defs.shPanagiotis Vasilopoulos
- SERENITY_ROOT is being kept around for compatibility reasons, and will be removed gradually - SERENITY_INSTALL_ROOT points to DESTDIR but will be preferred over that in the future - SERENITY_SOURCE_DIR points to the root folder of the repository. Let's keep the root terminology in the directory structure sort of sense out of here
2021-04-18Ports: Enable building ports with ccacheGunnar Beutner
2021-04-14Ports: Don't export the DESTDIR variable by defaultGunnar Beutner
Exporting DESTDIR interferes with cmake-based ports: Install the project... -- Install configuration: "" -- Up-to-date: /home/gunnar/serenity/Build/i686/Root/home/gunnar/serenity/Build/i686/Root/usr/lib/libSDL2.a -- Up-to-date: /home/gunnar/serenity/Build/i686/Root/home/gunnar/serenity/Build/i686/Root/usr/lib/libSDL2-2.0.a -- Up-to-date: /home/gunnar/serenity/Build/i686/Root/home/gunnar/serenity/Build/i686/Root/usr/lib/libSDL2main.a -- Up-to-date: /home/gunnar/serenity/Build/i686/Root/home/gunnar/serenity/Build/i686/Root/usr/lib/cmake/SDL2/SDL2Targets.cmake
2021-04-14Ports: Make sure pkg-config only picks up packages from the targetGunnar Beutner
2021-04-12Meta: Add install-ports CMake targetPeter Elliott
install-ports copys the necessary files from Ports/ to /usr/Ports. Also refactor the compiler and destiation variables from .port_include.sh into .hosted_defs.sh. .hosted_defs.sh does not exists when ports are built in serenity