Skip to content

Commit

Permalink
build: Use lowercase replacement strings
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Apr 27, 2022
1 parent 6c826ea commit c9f0a09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([yes])

## Define ABI information
AS_VAR_SET([ABI_MAJOR], [1])
AS_VAR_SET([ABI_MINOR], [0])
AS_VAR_SET([ABI_SUFFIX], [beta.0])
AS_VAR_SET([abi_major], [1])
AS_VAR_SET([abi_minor], [0])
AS_VAR_SET([abi_suffix], [beta.0])

## Check for tcmalloc
## This has to come first as others may depend on it.
Expand Down Expand Up @@ -63,9 +63,9 @@ AM_COND_IF([enable_thread_sanitizer], [
])

## Finish
AC_SUBST([ABI_MAJOR])
AC_SUBST([ABI_MINOR])
AC_SUBST([ABI_SUFFIX])
AC_SUBST([abi_major])
AC_SUBST([abi_minor])
AC_SUBST([abi_suffix])

AC_CONFIG_FILES([Makefile] [src/version.h])
AC_OUTPUT
2 changes: 1 addition & 1 deletion src/Makefile.inc.am
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ lib_libasteria_la_LIBADD = \
lib/librocket.la ${LTLIBICONV}

lib_libasteria_la_LDFLAGS = \
-Wl,--no-undefined -no-undefined -version-info @ABI_MAJOR@:@ABI_MINOR@
-Wl,--no-undefined -no-undefined -version-info @abi_major@:@abi_minor@

bin_PROGRAMS += bin/asteria
bin_asteria_SOURCES = \
Expand Down
6 changes: 3 additions & 3 deletions src/version.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#ifndef ASTERIA_VERSION_H_
#define ASTERIA_VERSION_H_

#define ASTERIA_ABI_VERSION_MAJOR @ABI_MAJOR@
#define ASTERIA_ABI_VERSION_MINOR @ABI_MINOR@
#define ASTERIA_ABI_VERSION_STRING "@ABI_MAJOR@.@ABI_MINOR@-@ABI_SUFFIX@"
#define ASTERIA_ABI_VERSION_MAJOR @abi_major@
#define ASTERIA_ABI_VERSION_MINOR @abi_minor@
#define ASTERIA_ABI_VERSION_STRING "@abi_major@.@abi_minor@-@abi_suffix@"

#endif

0 comments on commit c9f0a09

Please sign in to comment.