mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 17:59:09 +02:00
* libname only used when libtype is set or smartlink
This commit is contained in:
parent
9abc13ec3e
commit
a0902ea0ba
@ -426,21 +426,25 @@ ifeq ($(LIBTYPE),shared)
|
|||||||
override SMARTLINK=NO
|
override SMARTLINK=NO
|
||||||
else
|
else
|
||||||
override PPOPT+=-Cx
|
override PPOPT+=-Cx
|
||||||
|
ifneq ($(LIBNAME),)
|
||||||
|
override PPOPT+=-o$(LIBNAME)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Add library type, for static libraries smartlinking is automatic used
|
# Add library type, for static libraries smartlinking is automatic used
|
||||||
ifeq ($(LIBTYPE),shared)
|
ifeq ($(LIBTYPE),shared)
|
||||||
override PPOPT+=-CD
|
override PPOPT+=-CD
|
||||||
|
ifneq ($(LIBNAME),)
|
||||||
|
override PPOPT+=-o$(LIBNAME)
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
ifeq ($(LIBTYPE),static)
|
ifeq ($(LIBTYPE),static)
|
||||||
override PPOPT+=-CS
|
override PPOPT+=-CS
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Add library name
|
|
||||||
ifneq ($(LIBNAME),)
|
ifneq ($(LIBNAME),)
|
||||||
override PPOPT:=$(PPOPT) -o$(LIBNAME)
|
override PPOPT+=-o$(LIBNAME)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Add defines from PPOPTDEF to PPOPT
|
# Add defines from PPOPTDEF to PPOPT
|
||||||
|
Loading…
Reference in New Issue
Block a user