Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtsanders committed Jan 11, 2023
1 parent f62f5d8 commit 5e91a9d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
6 changes: 6 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
0.1.11

2023-01-11 Brecht Sanders https://github.com/brechtsanders/

* fixed Makefile to support overriding compliler with CC=<compiler>

0.1.10

2020-10-07 Brecht Sanders https://github.com/brechtsanders/
Expand Down
28 changes: 14 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
ifeq ($(OS),)
OS = $(shell uname -s)
ifneq ($(findstring Windows,$(OS))$(findstring MINGW32,$(OS))$(findstring MSYS,$(OS)),)
OS = Windows_NT
endif
endif
PLATFORMNAME = $(OS)
ifeq ($(PLATFORMNAME),Windows_NT)
ifneq ($(findstring x86_64,$(shell gcc --version)),)
PLATFORMNAME = win64
else ifneq ($(findstring i686,$(shell gcc --version)),)
PLATFORMNAME = win32
endif
endif
PREFIX = /usr/local
CC = gcc
CPP = g++
Expand All @@ -31,6 +17,20 @@ endif
INCS = -Iinclude -Isrc
CFLAGS = $(INCS) -Os
CPPFLAGS = $(INCS) -Os
ifeq ($(OS),)
OS = $(shell uname -s)
ifneq ($(findstring Windows,$(OS))$(findstring MINGW32,$(OS))$(findstring MSYS,$(OS)),)
OS = Windows_NT
endif
endif
PLATFORMNAME = $(OS)
ifeq ($(PLATFORMNAME),Windows_NT)
ifneq ($(findstring x86_64,$(shell $(CC) --version)),)
PLATFORMNAME = win64
else ifneq ($(findstring i686,$(shell $(CC) --version)),)
PLATFORMNAME = win32
endif
endif
ifeq ($(OS),Windows_NT)
# detect if asprintf exists (needed for recent MinGW-w64 versions)
CHECK_ASPRINTF=$(shell echo -e "#define _GNU_SOURCE\n#include <stdio.h>\nint main() {\n char* p;\n asprintf(&p, \".\");\n return 0;\n}\n"|gcc -xc - -ocheck_asprintf.exe -Wall && rm -f check_asprintf.exe && echo OK)
Expand Down
2 changes: 1 addition & 1 deletion src/proxysocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern "C" {
/*! \brief minor version number */
#define PROXYSOCKET_VERSION_MINOR 1
/*! \brief micro version number */
#define PROXYSOCKET_VERSION_MICRO 10
#define PROXYSOCKET_VERSION_MICRO 11
/*! @} */

/*! \brief proxy types
Expand Down

0 comments on commit 5e91a9d

Please sign in to comment.