Skip to content

Commit

Permalink
Add -lm for static compile + minor test changes for 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Jan 28, 2025
1 parent 0ad59d3 commit 1580aa7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/backend/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ endif
# even though it may exist in $(libdir). But the new version may not have been installed yet.
LIBDEPS = $(top_srcdir)/lib/src/$(CLIXON_LIB)

LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@ -lm
INCLUDES = -I. -I$(top_srcdir)/lib/src -I$(top_srcdir)/lib -I$(top_srcdir)/include -I$(top_srcdir) @INCLUDES@

# Name of application
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ endif # LINKAGE
# even though it may exist in $(libdir). But the new version may not have been installed yet.
LIBDEPS = $(top_srcdir)/lib/src/$(CLIXON_LIB)

LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@ -lm

INCLUDES = -I. -I$(top_srcdir)/lib -I$(top_srcdir)/include -I$(top_srcdir) @INCLUDES@

Expand Down
2 changes: 1 addition & 1 deletion apps/netconf/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ endif
# For dependency
LIBDEPS = $(top_srcdir)/lib/src/$(CLIXON_LIB)

LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@ -lm

ifeq ($(LINKAGE),dynamic)
CPPFLAGS = @CPPFLAGS@ -fPIC
Expand Down
2 changes: 1 addition & 1 deletion apps/restconf/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ endif
# For dependency
LIBDEPS = $(top_srcdir)/lib/src/$(CLIXON_LIB)

LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@ -lm

YACC = @YACC@
LEX = @LEX@
Expand Down
2 changes: 1 addition & 1 deletion apps/snmp/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ endif
# For dependency
LIBDEPS = $(top_srcdir)/lib/src/$(CLIXON_LIB)

LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@
LIBS = -L$(top_srcdir)/lib/src $(top_srcdir)/lib/src/$(CLIXON_LIB) @LIBS@ -lm

CPPFLAGS = @CPPFLAGS@

Expand Down
2 changes: 1 addition & 1 deletion lib/src/clixon_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ clicon_hash_dump(clicon_hash_t *hash,
char **keys = NULL;
void *val;
size_t klen;
size_t vlen;
size_t vlen = 0;

if (hash == NULL)
goto ok;
Expand Down
1 change: 0 additions & 1 deletion lib/src/clixon_proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,6 @@ clixon_msg_rcv11(int s,
if (intr){
if (clixon_signal_save(&oldsigset, oldsigaction) < 0)
goto done;

set_signal(SIGINT, SIG_IGN, NULL);
clicon_signal_unblock(SIGINT);
set_signal_flags(SIGINT, 0, atomicio_sig_handler, NULL);
Expand Down
3 changes: 3 additions & 0 deletions test/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@ function start_backend(){
}

function stop_backend(){
if [ $valgrindtest -eq 2 ]; then
sleep 1
fi
sudo clixon_backend -z $*
if [ $? -ne 0 ]; then
err "kill backend"
Expand Down
2 changes: 1 addition & 1 deletion test/test_upgrade_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ EOF
new "b payload only"
testall '<dummy xmlns="urn:example:b"/>' '<dummy xmlns="urn:example:b"/>'

new "b payload and interfaces payload---------"
new "b payload and interfaces payload"
testall '<dummy xmlns="urn:example:b"/><dummy xmlns="urn:example:interfaces"/>' '<dummy xmlns="urn:example:b"/>'

new "a payload only"
Expand Down

0 comments on commit 1580aa7

Please sign in to comment.