diff options
author | Trustfarm-heart <trustfarm-dev@users.noreply.github.com> | 2016-10-10 04:17:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 04:17:28 +0900 |
commit | 06eedd8a24f7a2163a2ff862406daf2e57445b23 (patch) | |
tree | 7870d84d34b5ab02c6aba8c2da4287b2253c32af | |
parent | 5f98e1d35dcf00a026793ada2662f6e1ba77eb17 (diff) |
Build error patch with glib-2.0
In case of some glib-2.0 linker error ,
make examples
can't link with glib2.0, in this case -lglib-2.0 to after includes and move to last will solve the issues.
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ hiredis-example-libev: examples/example-libev.c adapters/libev.h $(STLIBNAME) $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. $< -lev $(STLIBNAME) hiredis-example-glib: examples/example-glib.c adapters/glib.h $(STLIBNAME) - $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) $(shell pkg-config --cflags --libs glib-2.0) -I. $< $(STLIBNAME) + $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. $< $(shell pkg-config --cflags --libs glib-2.0) $(STLIBNAME) hiredis-example-ivykis: examples/example-ivykis.c adapters/ivykis.h $(STLIBNAME) $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. $< -livykis $(STLIBNAME) |