Skip to content

Commit

Permalink
import-lx_emul_common.inc: don't use 'nm -U'
Browse files Browse the repository at this point in the history
The option is used during the generation of initcall_table.c.
However, it happens to strip the first argument following the option.
The long option --defined-only works as expected.

Issue #5155
  • Loading branch information
nfeske committed Mar 20, 2024
1 parent cd60b54 commit 437efde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repos/dde_linux/lib/import/import-lx_emul_common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ endef
WAIT_FOR_OBJECTS = $(addsuffix .o,$(basename $(filter-out initcall_table.c,$(SRC_C))))

# retrieve 'initptr_*' using nm from object files
INITCALLS = $(sort $(shell $(NM) -U $(WAIT_FOR_OBJECTS) |\
INITCALLS = $(sort $(shell $(NM) --defined-only $(WAIT_FOR_OBJECTS) |\
grep "__initptr" |\
awk '{print $$3}'))

Expand Down

0 comments on commit 437efde

Please sign in to comment.