diff options
author | Michael Osipov <1983-01-06@gmx.net> | 2019-05-08 02:00:21 +0200 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2019-05-07 20:00:21 -0400 |
commit | e1f8c728bb8dc7949715741049086748e18f6e04 (patch) | |
tree | 4472d2ff7e2e3317b55e7e1fce5e010dc130ebb5 | |
parent | 416749803be5f9d8903c9d95c92153370f890db6 (diff) | |
download | libutf8proc-e1f8c728bb8dc7949715741049086748e18f6e04.tar.gz libutf8proc-e1f8c728bb8dc7949715741049086748e18f6e04.tar.bz2 |
Improve portability of Make (#154)
Several options passed to $(CC) are not portable, e.g., for HP aCC.
Move them to variables.
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -13,6 +13,8 @@ PICFLAG = -fPIC C99FLAG = -std=c99 WCFLAGS = -Wall -pedantic UCFLAGS = $(CPPFLAGS) $(CFLAGS) $(PICFLAG) $(C99FLAG) $(WCFLAGS) -DUTF8PROC_EXPORTS $(UTF8PROC_DEFINES) +LDFLAG_SHARED = -shared +SOFLAG = -Wl,-soname # shared-library version MAJOR.MINOR.PATCH ... this may be *different* # from the utf8proc version number because it indicates ABI compatibility, @@ -79,7 +81,7 @@ libutf8proc.a: utf8proc.o $(AR) rs libutf8proc.a utf8proc.o libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH): utf8proc.o - $(CC) $(LDFLAGS) -shared -o $@ -Wl,-soname -Wl,libutf8proc.so.$(MAJOR) utf8proc.o + $(CC) $(LDFLAGS) $(LDFLAG_SHARED) -o $@ $(SOFLAG) -Wl,libutf8proc.so.$(MAJOR) utf8proc.o chmod a-x $@ libutf8proc.so: libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH) |