selftest/memfd/Makefile: Fix build error
authorSeongJae Park <sj38.park@gmail.com>
Sun, 18 Jun 2017 00:56:02 +0000 (09:56 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Fri, 23 Jun 2017 19:35:00 +0000 (13:35 -0600)
commitd02db4f5b2c9159a9c8e22c57b90b48268ccd6ee
tree626d3028f9002dd35a802ce392ce0c47771c2da0
parente0912c0129038e1e8eb20e0441fc3d6b33215d68
selftest/memfd/Makefile: Fix build error

Selftest for memfd shows build error as below:
```
gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/    fuse_mnt.c  -o /home/sjpark/linux/tools/testing/selftests/memfd/fuse_mnt
/tmp/cc6NHdwJ.o: In function `main':
fuse_mnt.c:(.text+0x249): undefined reference to `fuse_main_real'
collect2: error: ld returned 1 exit status
```

The build fails because output file is specified without $(OUTPUT) and
LDFLAGS is used though Makefile implicit rule is used.  This commit
fixes the error by specifying output file path with $(OUTPUT) and using
LDLIBS instead of LDFLAGS.

Signed-off-by: SeongJae Park <sj38.park@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/memfd/Makefile