mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
@@ -167,28 +167,6 @@ $(LIB_TAG) $(OBJECTS): $(HOST_TOOLS)
|
||||
$(LIB_TAG): $(LIB_A) $(LIB_SO) $(LIB_CHECKED) $(ABI_SO) $(INSTALL_SO) $(DEBUG_SO)
|
||||
@touch $@
|
||||
|
||||
#
|
||||
# Rust support
|
||||
#
|
||||
# For a rust library, we create both an actual library (lib.a or lib.so) that
|
||||
# is used for linking the final binary, and an rlib file that is required for
|
||||
# compiling rust source codes that use the library. As the rlib is created from
|
||||
# the file specified at 'SRC_RS' via the pattern rule '%.rlib: %.rs', its name
|
||||
# corresponds to the source file, not the library name. To enable rustc to find
|
||||
# the library when compiling dependent compilation units, we create an
|
||||
# appropriately named symlink that points to the rlib file.
|
||||
#
|
||||
ifneq ($(SRC_RS),)
|
||||
ifneq ($(words $(SRC_RS)),1)
|
||||
$(error 'SRC_RC' of library $(LIB) has more than one element: $(SRC_RC))
|
||||
endif
|
||||
$(LIB_A): $(LIB).rlib
|
||||
endif
|
||||
|
||||
.PRECIOUS: $(SRC_RC:.rs=.rlib)
|
||||
$(LIB).rlib: $(SRC_RS:.rs=.rlib)
|
||||
$(VERBOSE)ln -s $< $@
|
||||
|
||||
#
|
||||
# Rule to build the <libname>.lib.a file
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user