Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tools] Fixed linking with nfcd core. JB#58728
Since the symbols exported by nfcd core had been marked as weak,
they were no longer linked into the executable. That makes the
app crash when it tries to call those function.
  • Loading branch information
monich committed Sep 6, 2022
1 parent b4eb8a8 commit b1087be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/ndef-read/Makefile
Expand Up @@ -63,6 +63,7 @@ DEBUG_DEFS = -DDEBUG
RELEASE_DEFS =
WARNINGS = -Wall -Wstrict-aliasing -Wunused-result
INCLUDES = -I. -I$(NFC_CORE_DIR)/include -I$(GEN_DIR)
DEFINES += -DNFCD_EXPORT='__attribute__((visibility ("default")))'
FULL_CFLAGS = -fPIC $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
-MMD -MP $(shell pkg-config --cflags $(PKGS))
FULL_LDFLAGS = $(LDFLAGS)
Expand Down
1 change: 1 addition & 0 deletions tools/ndef-write/Makefile
Expand Up @@ -64,6 +64,7 @@ DEBUG_DEFS = -DDEBUG
RELEASE_DEFS =
WARNINGS = -Wall -Wstrict-aliasing -Wunused-result
INCLUDES = -I. -I$(NFC_CORE_DIR)/include -I$(GEN_DIR)
DEFINES += -DNFCD_EXPORT='__attribute__((visibility ("default")))'
FULL_CFLAGS = -fPIC $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
-MMD -MP $(shell pkg-config --cflags $(PKGS))
FULL_LDFLAGS = $(LDFLAGS)
Expand Down

0 comments on commit b1087be

Please sign in to comment.