Closed aitjcize closed 6 years ago
How about not changing anything about common.mk and using CFLAGS_USER and LDFLAG_USER for no-root user?
I think it does not make sense to assume user installed their openssl under a certain prefix. Just like you won't assume that on other platforms such as Linux. The best way is for the user themselves to specify those if they have a non-standard installation path.
that's slightly better, thanks!
oops, reopening this as your commit haven't make it's way to master.
Okay, I pushed it to master.
Ok, I just found out that you need gmp as well, which means you need to add
GMP_DIR?=...
CFLAGS+=-I$(OPENSSL_DIR)/include -I$(GMP_DIR)/include
LDFLAGS+=-L$(OPENSSL_DIR)/lib -I $(GMP_DIR)/lib
So I would probably stick to my original proposal, which is don't make an assumption on user's lib installation path, and just deal with MacOS like other platforms.
Non-root installation of homebrew does not install openssl under /usr/local. Let user handle the LDFLAG and include path on their own.