mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 19:27:42 +01:00
build: Use new AR variable instead of hardcoded command
This commit is contained in:
parent
08afd5d4c9
commit
51863b6cf9
3
Makefile
3
Makefile
@ -100,6 +100,7 @@ LIB_MANS := $(patsubst %,src/%,$(LIB_MANS))
|
|||||||
LIB_STATIC_OBJS := $(LIB_SRCS:%.c=%.o)
|
LIB_STATIC_OBJS := $(LIB_SRCS:%.c=%.o)
|
||||||
LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo)
|
LIB_SHARED_OBJS := $(LIB_SRCS:%.c=%.lo)
|
||||||
|
|
||||||
|
AR = ar
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CCLD = $(CC)
|
CCLD = $(CC)
|
||||||
|
|
||||||
@ -146,7 +147,7 @@ $(LIB_PKGCONFIG): $(LIB_PKGCONFIG).in
|
|||||||
$< > $@
|
$< > $@
|
||||||
|
|
||||||
$(LIB_STATIC): $(LIB_STATIC_OBJS)
|
$(LIB_STATIC): $(LIB_STATIC_OBJS)
|
||||||
ar rcs $@ $^
|
$(AR) rcs $@ $^
|
||||||
|
|
||||||
$(LIB_SHARED_SO): $(LIB_SONAME)
|
$(LIB_SHARED_SO): $(LIB_SONAME)
|
||||||
ln -fs $^ $@
|
ln -fs $^ $@
|
||||||
|
Loading…
Reference in New Issue
Block a user