Skip to content

Commit

Permalink
Specify ibm and clang shared link flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
grafikrobot committed Jan 22, 2025
1 parent c922222 commit b2924ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tools/ibmcxx.jam
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,16 @@ flags-* NEEDLIBS <library-file> ;
flags-* FINDLIBS <find-shared-library> ;
flags-* FINDLIBS <find-static-library> ;

# Language for source files to compile.
flags-ibm OPTIONS : -qsourcetype=c : compile.c ;
flags-ibm OPTIONS : -qsourcetype=c++ : compile.c++ ;
flags-clang OPTIONS : "-x c" : compile.c ;
flags-clang OPTIONS : "-x c++" : compile.c++ ;

# Generate shared link objects.
flags-ibm LINKFLAGS : -G : ibmcxx.link.dll ;
flags-clang LINKFLAGS : -shared : ibmcxx.link.dll ;


_ = " " ;

Expand All @@ -258,7 +263,7 @@ actions ibmcxx.link bind NEEDLIBS

actions ibmcxx.link.dll bind NEEDLIBS
{
"$(CONFIG_COMMAND)" -G $(LINKFLAGS) -o "$(<[1])" $(HAVE_SONAME)-Wl,-soname$(_)-Wl,$(<[-1]:D=) -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) $(OPTIONS) $(USER_OPTIONS)
"$(CONFIG_COMMAND)" $(LINKFLAGS) -o "$(<[1])" $(HAVE_SONAME)-Wl,-soname$(_)-Wl,$(<[-1]:D=) -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) $(OPTIONS) $(USER_OPTIONS)
}

actions ibmcxx.compile.c
Expand Down

0 comments on commit b2924ef

Please sign in to comment.