Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Add CMake Variable TIMEMORY_BINUTILS_DOWNLOAD_URL #259

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion cmake/Modules/ConfigBinutils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,22 @@ mark_as_advanced(binutils_CONFIG_FLAGS)
# needed for configure command
string(REPLACE " " ";" _binutils_CONFIG_FLAGS "${binutils_CONFIG_FLAGS}")

# List of URLS (includes mirrors) to download binutils from.
set(TIMEMORY_BINUTILS_DOWNLOAD_URL
""
CACHE STRING "URLs for binutils download")

# Add defualt URLs to download binutils from.
list(APPEND TIMEMORY_BINUTILS_DOWNLOAD_URL
"http://ftpmirror.gnu.org/gnu/binutils/binutils-2.40.tar.gz"
"http://mirrors.kernel.org/sourceware/binutils/releases/binutils-2.40.tar.gz"
)

include(ExternalProject)
externalproject_add(
binutils-external
PREFIX ${PROJECT_BINARY_DIR}/external/binutils
URL http://ftpmirror.gnu.org/gnu/binutils/binutils-2.40.tar.gz
URL ${TIMEMORY_BINUTILS_DOWNLOAD_URL}
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND
${CMAKE_COMMAND} -E env CC=${CMAKE_C_COMPILER} CFLAGS=-fPIC\ -O3
Expand Down
Loading