nealef commented on PR #2026:
URL: https://github.com/apache/nuttx-apps/pull/2026#issuecomment-1734897163
Alternatively, could I scrub setting `SHMODULEFLAGS` at the board level and
just define it in the `dynload/Makefile`:
```
--- a/examples/sotest/lib/dynload/Makefile
+++ b/examples/sotest/lib/dynload/Makefile
@@ -33,16 +33,23 @@ BIN = dynload
SRCS = $(BIN).c
OBJS = $(SRCS:.c=$(OBJEXT))
+SHCCFLAGS = -fPIC -fPIE -fvisibility=default
+SHLDFLAGS = -shared -Bsymbolic -Bdynamic -G
+
+ifeq ($(CONFIG_SIM_M32),y)
+ SHLDFLAGS += -melf_i386
+endif
+
all: $(BIN)
.PHONY: all clean install
$(OBJS): %$(OBJEXT): %.c
@echo "MODULECC: $<"
- $(Q) $(MODULECC) -c $(CMODULEFLAGS) -fPIC -fPIE -fvisibility=default
$< -o $@
+ $(Q) $(MODULECC) -c $(CMODULEFLAGS) $(SHCCFLAGS) $< -o $@
$(BIN): $(OBJS)
@echo "MODULELD: $<"
- $(Q) $(MODULELD) $(SHMODULEFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS)
+ $(Q) $(MODULELD) $(SHLDFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS)
$(FSROOT_DIR)/$(BIN): $(BIN)
$(Q) mkdir -p $(FSROOT_DIR)
```
Or is this being too GNU-toolchain-specific?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]