Skip to content

Commit

Permalink
LEVEL=1的makefile设置LINUX_MAKE_SHARED_LIB控制链接动态库静态库类型
Browse files Browse the repository at this point in the history
  • Loading branch information
chimeh committed Jan 11, 2018
1 parent 885975d commit cead632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions fcu/bcm/mk/Make.exec
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ $(targetexec): $(BLDDIR)/.tree $(OUTDIR)/strip/.tree ${LD_O_FILES}
@$(ECHO) "[$(target)] LINK $@" # This is needed for error parsing
$(Q)$(CC) \
-o $@ \
$(LDFLAGS) -L${LIBDIR} \
$(_LD_START_GROUP) $(LD_O_FILES) $(LD_A_FILES) $(LD_L_LISTS) $(_LD_END_GROUP) \
$(_LD_START_GROUP) $(LD_O_FILES) $(LD_A_FILES) $(LD_L_LISTS) $(LDFLAGS) -L${LIBDIR} $(_LD_END_GROUP) \
$(LD_INFO_OPTS)
$(CP) $@ $(OUTDIR)
$(Q)$(STRIP) --strip-debug $@ -o $(OUTDIR)/strip/$(notdir $@)
Expand Down
3 changes: 2 additions & 1 deletion fcu/bcm/mk/Make.lib
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

BOBJS_MAKE_CMD =

ifeq ($(LINUX_MAKE_SHARED_LIB),1)

ifneq ($(LINUX_MAKE_SHARED_LIB),)
LIBSUFFIX=so.${SHAREDLIBVER}

targetlibsoname = ${lib}.${LIBSUFFIX}
Expand Down

0 comments on commit cead632

Please sign in to comment.