Skip to content

Commit

Permalink
pua_reginfo: Avoid clearing LIBS= flags during build
Browse files Browse the repository at this point in the history
This breaks CI by clearing "-flto", which leads to unrecognizable ".o"
files which the linker assumes to be bytecode (hint, hint: they are not).

Thanks to Răzvan Crainea for helping troubleshoot this!
  • Loading branch information
liviuchircu committed Apr 18, 2024
1 parent 70b805e commit 7eee4aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/pua_reginfo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
include ../../Makefile.defs
auto_gen=
NAME=pua_reginfo.so
LIBS=

ifeq ($(CROSS_COMPILE),)
XML2CFG=$(shell which xml2-config)
Expand All @@ -22,8 +21,8 @@ ifneq ($(XML2CFG),)
DEFS += $(shell $(XML2CFG) --cflags )
LIBS += $(shell $(XML2CFG) --libs)
else
DEFS+=-I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
LIBS+=-L$(LOCALBASE)/lib -lxml2
DEFS += -I$(LOCALBASE)/include/libxml2 -I$(LOCALBASE)/include
LIBS += -L$(LOCALBASE)/lib -lxml2
endif

include ../../Makefile.modules

0 comments on commit 7eee4aa

Please sign in to comment.