Skip to content

Commit 5a754b6

Browse files
fix wrong ar command (#117) (#119)
(cherry picked from commit 4191a31) Co-authored-by: Roland Schwan <RSchwan@users.noreply.github.com>
1 parent 56ff175 commit 5a754b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libmicroros.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ $(EXTENSIONS_DIR)/libmicroros.a: $(EXTENSIONS_DIR)/micro_ros_src/install patch_a
125125
mkdir -p $(UROS_DIR)/libmicroros; cd $(UROS_DIR)/libmicroros; \
126126
for file in $$(find $(UROS_DIR)/install/lib/ -name '*.a'); do \
127127
folder=$$(echo $$file | sed -E "s/(.+)\/(.+).a/\2/"); \
128-
mkdir -p $$folder; cd $$folder; $(AR) x $$file; \
128+
mkdir -p $$folder; cd $$folder; $(X_AR) x $$file; \
129129
for f in *; do \
130130
mv $$f ../$$folder-$$f; \
131131
done; \
132132
cd ..; rm -rf $$folder; \
133133
done ; \
134-
$(AR) rc -s libmicroros.a *.obj; cp libmicroros.a $(EXTENSIONS_DIR); \
134+
$(X_AR) rc -s libmicroros.a *.obj; cp libmicroros.a $(EXTENSIONS_DIR); \
135135
cd ..; rm -rf libmicroros; \
136136
cp -R $(UROS_DIR)/install/include $(EXTENSIONS_DIR)/include;

0 commit comments

Comments
 (0)