I get the following, which appears to be what you were expecting. $ grep sse4 src/Makefile.global CFLAGS_SSE42 = -msse4.2 PG_CRC32C_OBJS = pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o
Gmake's version is: $ gmake --version GNU Make 4.2.1 Built for amd64-portbld-freebsd11.1 I installed this via "pkg install gmake". I didn't build it myself. On Mon, Mar 19, 2018 at 3:50 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > [ please keep the list cc'd ] > > Terry Phelps <tgphelp...@gmail.com> writes: > > I can barely read a configure.in file, but here's what I think you're > > asking for. If not, I'll try again: > > > configure:15453: checking for _mm_crc32_u8 and _mm_crc32_u32 with > > CFLAGS=-msse4.2 > > configure:15475: cc -o conftest -Wall -Wmissing-prototypes > -Wpointer-arith > > -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute > > -Wformat-security -fno-strict-aliasing -fwrapv > > -Wno-unused-command-line-argument -I/usr/local/include -msse4.2 > > -L/usr/local/lib conftest.c -lz -lreadline -lcrypt -lm >&5 > > configure:15475: $? = 0 > > configure:15484: result: yes > > Interesting. So it looks like configure *did* decide that -msse4.2 > is needed. What do you get from "grep sse4 src/Makefile.global" ? > What I'd expect is > > CFLAGS_SSE42 = -msse4.2 > PG_CRC32C_OBJS = pg_crc32c_sse42.o pg_crc32c_sb8.o pg_crc32c_choose.o > > If you see that, then the next question is why CFLAGS_SSE42 isn't > getting propagated into the build of pg_crc32c_sse42.o, which would > seem to suggest a problem with gmake. What make version are you > using? > > regards, tom lane >