components/open-fabrics/rds-tools/patches/001-rds-tools-solaris_port.patch
changeset 5787 c0615d62b41a
parent 5708 49b43e37ce26
child 5826 9c90e4a8156c
equal deleted inserted replaced
5786:5754dc3ac5eb 5787:c0615d62b41a
    16  all: all-programs
    16  all: all-programs
    17  
    17  
    18 -CFLAGS = -O2 -Wall -Iinclude
    18 -CFLAGS = -O2 -Wall -Iinclude
    19 -CPPFLAGS = -DDEBUG_EXE -DRDS_VERSION=\"@[email protected]\" -MD -MP -MF $(@D)/.$(basename $(@F)).d
    19 -CPPFLAGS = -DDEBUG_EXE -DRDS_VERSION=\"@[email protected]\" -MD -MP -MF $(@D)/.$(basename $(@F)).d
    20 +CFLAGS += -O2 -Wall -Iinclude
    20 +CFLAGS += -O2 -Wall -Iinclude
    21 +CPPFLAGS += -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ \
    21 +CPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ \
    22 +	-DDEBUG_EXE -DRDS_VERSION=\"@[email protected]\" -MD -MP -MF $(@D)/.$(basename $(@F)).d
    22 +	-DDEBUG_EXE -DRDS_VERSION=\"@[email protected]\" -MD -MP -MF $(@D)/.$(basename $(@F)).d
    23 +LDFLAGS += -libverbs -lsocket -lnsl -llgrp
    23 +LDFLAGS += -libverbs -lsocket -lnsl -llgrp
    24  
    24  
    25  HEADERS = kernel-list.h pfhack.h include/rds.h
    25  HEADERS = kernel-list.h pfhack.h include/rds.h
    26 -COMMON_SOURCES = pfhack.c
    26 -COMMON_SOURCES = pfhack.c
   103 --- a/examples/Makefile	Tue Feb 23 22:30:57 2016 -0800
   103 --- a/examples/Makefile	Tue Feb 23 22:30:57 2016 -0800
   104 +++ b/examples/Makefile	Tue Feb 23 22:30:58 2016 -0800
   104 +++ b/examples/Makefile	Tue Feb 23 22:30:58 2016 -0800
   105 @@ -1,6 +1,12 @@
   105 @@ -1,6 +1,12 @@
   106 +CC=gcc
   106 +CC=gcc
   107 +LIBS = -lsocket -lnsl
   107 +LIBS = -lsocket -lnsl
   108 +CPPFLAGS += -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
   108 +CPPFLAGS += -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
   109  
   109  
   110  all: rds-sample
   110  all: rds-sample
   111  
   111  
   112 -rds-sample: rds-sample.o
   112 -rds-sample: rds-sample.o
   113 +rds-sample: rds-sample.c
   113 +rds-sample: rds-sample.c