Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
domu: Fix for "glob.c:(.text+0x2c1): undefined reference to `__alloca…
Browse files Browse the repository at this point in the history
…'" ...

   ... when building on Ubuntu 18.04

According to:
linuxboot/heads#352

Signed-off-by: Oleksandr Tyshchenko <[email protected]>
  • Loading branch information
Oleksandr Tyshchenko committed Dec 11, 2019
1 parent 171bd69 commit d735b0c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- clean/make-4.2/glob/glob.c 2013-10-20 17:14:38.000000000 +0000
+++ make-4.2/glob/glob.c 2018-09-18 10:16:03.860886356 +0000
@@ -208,7 +208,7 @@
#endif /* __GNU_LIBRARY__ || __DJGPP__ */


-#if !defined __alloca && !defined __GNU_LIBRARY__
+#if !defined __alloca && defined __GNU_LIBRARY__

# ifdef __GNUC__
# undef alloca
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

# Fix for "glob.c:(.text+0x2c1): undefined reference to `__alloca'" when
# building on Ubuntu 18.04
# According to:
# https://github.com/osresearch/heads/issues/352

SRC_URI += "\
file://make-4.2.1.patch \
"

0 comments on commit d735b0c

Please sign in to comment.