Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0510-Fix-windows-TARGET_SRC-dependencies.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0510-Fix-windows-TARGET_SRC-dependencies.patch of Package erlang
From ba7a7b05f9e55bff040f9596189a99da7a01490f Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Wed, 12 Oct 2022 16:02:30 +0200 Subject: [PATCH 1/9] Fix windows TARGET_SRC dependencies There are no .c files in $(TARGET)/ on windows, so the shell ls would always print an error. We use find instead so that if there are no files found there is no error printed. --- erts/emulator/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in index b0636b866d..30b2ff5c02 100644 --- a/erts/emulator/Makefile.in +++ b/erts/emulator/Makefile.in @@ -1328,9 +1328,9 @@ NIF_COMMON_SRC=$(wildcard nifs/common/*.c) endif NIF_OSTYPE_SRC=$(wildcard nifs/$(ERLANG_OSTYPE)/*.c) ALL_SYS_SRC=$(wildcard sys/$(ERLANG_OSTYPE)/*.c) $(wildcard sys/common/*.c) -# We use $(shell ls) here instead of wildcard as $(wildcard ) resolved at +# We use $(shell find) here instead of wildcard as $(wildcard ) resolved at # loadtime of the makefile and at that time these files are not generated yet. -TARGET_SRC=$(shell ls $(TARGET)/*.c) $(shell ls $(TTF_DIR)/*.c) +TARGET_SRC=$(shell find $(TARGET) $(TTF_DIR) -maxdepth 1 -name "*.c") # I do not want the -MG flag on windows, it does not work properly for a # windows build. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor